我是初学者。我正在尝试学习 ajax 选项卡控件。我有 3 个选项卡,每个选项卡都有几个文本框和一个提交按钮。问题是当我双击一个按钮时,它需要我到源代码(html)我想为按钮单击编写代码,即使是在 .cs 文件上。我怎么做?
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<b>Tabs Demonstration</b> <br /><br />
<asp:TabContainer runat="server" ID="Tabs" Height="138px" ActiveTabIndex="0"
Width="402px">
<asp:TabPanel runat="server" ID="Panel1" HeaderText="Address">
<ContentTemplate>
<asp:UpdatePanel ID="updatePanel1" runat="server">
<ContentTemplate>
<table>
<tr><td class="style1">First Name:</td><td class="style1"><asp:TextBox ID="txtName" runat="server" /></td></tr>
<tr><td>Address:</td><td><asp:TextBox ID="txtAddress" runat="server" /></td></tr>
<tr><td>
<asp:Button ID="Button1" runat="server" Text="Submit" /></td></tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel runat="server" ID="Panel3" HeaderText="Email" >
<ContentTemplate>
Email: <asp:TextBox ID="txtEmail" runat="server" />
<asp:Button ID="Button2" runat="server" Text="Button" /></ContentTemplate>
</asp:TabPanel>
<asp:TabPanel runat="server" ID="Panel2" HeaderText="Login Details">
<ContentTemplate>
<table>
<tr> <td>User Name:</td><td><asp:TextBox ID="txtUser" runat="server" /></td></tr>
<tr> <td>Password:</td><td><asp:TextBox ID="txtPass" runat="server" /><asp:Button ID="Button3" runat="server"
Text="Button" /></td></tr>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
</form>