日期:2014-05-17 浏览次数:20515 次
<form id="form1" runat="server"> <div id="error"> <asp:ScriptManager ID="script" runat="server"></asp:ScriptManager> </div> <asp:UpdatePanel ID="update" runat="server" UpdateMode="Always"> <ContentTemplate> <asp:TextBox ID="TextBox1" runat="server" EnableViewState="False"></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <asp:Button ID="btnOK" runat="server" Text="AJAX" onclick="btnOK_Click"/> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="btnOK" /> </Triggers> </asp:UpdatePanel> <asp:UpdatePanel ID="update1" runat="server" UpdateMode="Always"> <ContentTemplate> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox> <asp:Button ID="btn1" runat="server" Text="异步" onclick="btn1_Click"/> </ContentTemplate> </asp:UpdatePanel> <asp:GridView ID="gvList" runat="server"> </asp:GridView> </form>