I am using jquery tab control in my web application, I am displaying aspx pages inside tabs, I have a single button to save values which are entered in these asp pages controls.
This is my tab control with save button
<div id="tabs">
<ul>
<li><a href="Test1.aspx"><span>Test</span></a></li>
<li><a href="Test2.aspx">Second</a></li>
<li><a href="#tabs-3">Third</a></li>
</ul>
</div>
<div>
<asp:Button ID="btntest" runat="server" OnClick="btntest_Click" Text="Submit" />
</div>
and this is my Test1.aspx
<form id="form1" runat="server">
<table>
<tr>
<td>Firstname:</td>
<td>
<asp:TextBox ID="txtname" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td>Lastname:</td>
<td>
<asp:TextBox ID="txtlname" runat="server"></asp:TextBox></td>
</tr>
</table>
</form>
Test2.aspx
<form id="form1" runat="server">
<table>
<tr>
<td>Age:</td>
<td>
<asp:TextBox ID="txtage" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td>Occupation:</td>
<td>
<asp:TextBox ID="txtoccup" runat="server"></asp:TextBox></td>
</tr>
</table>
</form>
Now I want to save the values which are entered in Firstname, lastname, age and occupation fields. How can I access these controls in btntest_Click?
I want functionality that if on any tab,user click save button,it will save the respected form data.
Or is there any other solution/control for this?
What I have tried:
I have tried using jquery tab control, Also I have tried asp.net multi-view but in multi-view I cant display web pages in side View.