Ajax局部刷新

来源:互联网 发布:mac切换大写字母 编辑:程序博客网 时间:2024/06/16 13:57
                                    报警类型<sjt:NormativeAlarmTypeDropDownList ID="ddlAlarmType" runat="server" Width="120px" ShowAllItem="true" AutoPostBack="true" /><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><asp:UpdatePanel ID="upInternalId" UpdateMode="Conditional" runat="server">  <ContentTemplate>报警项目      asp:DropDownList ID="ddlInternalId" runat="server" Width="120px" />  </ContentTemplate>  <Triggers><asp:AsyncPostBackTrigger ControlID="ddlAlarmType" />  </Triggers></asp:UpdatePanel>

注意:

1.AutoPostBack="true";

2.<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>;

3.自变量写在Triggers中,因变量写在ContentTemplate中;

效果图:



0 0
原创粉丝点击