关于dropdownlist的问题
页面如下
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server"
onselectedindexchanged="DropDownList1_SelectedIndexChanged">
<asp:ListItem Value="1">a</asp:ListItem>
<asp:ListItem Value="2">b</asp:ListItem>
<asp:ListItem Value="3">c</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="添加" />
</div>
</form>
</body>
</html>
不要数据库 如何实现点击添加,就自动增加一个label 并且以前的数据部丢失;现在我点击一次页面都刷新了 以前的数据没了 所以一直就是一个值