<asp:UpdatePanel ID="UpdatePanel1" runat="server">
</asp:UpdatePanel>点击<asp:DropDownList>不刷新页面
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>在上面
<asp:DropDownList >为AutoPostBack="True",页面上的onselectedindexchanged事件才有效果
本文介绍如何在ASP.NET中使用UpdatePanel和ScriptManager实现 DropDownList 控件选择更改时页面局部刷新,而非全页刷新的方法。通过设置AutoPostBack属性为True并定义 onselectedindexchanged 事件来达到这一目的。
164

被折叠的 条评论
为什么被折叠?



