<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy> <cc1:TabContainer ID="TabContainer1" runat="server" Visible="true" AutoPostBack="true"> <cc1:TabPanel runat="server" ID="Company"> <HeaderTemplate>Commpany Details</HeaderTemplate> <ContentTemplate> <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate>--%> <table> <tr> <td> <asp:Label ID="lblCompanyName" runat="server" Text="Company Name"></asp:Label> </td> <td> <asp:TextBox ID="txtCompnyName" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblUserName" runat="server" Text="User Name"></asp:Label> </td> <td> <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblpwd" runat="server" Text="Password"></asp:Label> </td> <td> <asp:TextBox ID="txtpwd" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblConfirmPwd" runat="server" Text="Confirm Password"></asp:Label> </td> <td> <asp:TextBox ID="txtconfirmPwd" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblAdmin" runat="server" Text="Name Of the Admin"></asp:Label> </td> <td> <asp:TextBox ID="txtAdmin" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblContact" runat="server" Text="Contact"></asp:Label> </td> <td> <asp:TextBox ID="txtContact" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lblEmail" runat="server" Text="E-mail"></asp:Label> </td> <td> <asp:TextBox ID="txtEmmail" runat="server"></asp:TextBox> </td> </tr> <%-- </ContentTemplate> </asp:UpdatePanel>--%> <tr> <td> <asp:Button runat="server" ID="btnNext1" Text="Next" OnClick="btnNext1_Click"/> </td> </tr> </table> </ContentTemplate> </cc1:TabPanel> <cc1:TabPanel runat="server" ID="tabProducts"> <HeaderTemplate>Products</HeaderTemplate> <ContentTemplate>This is content 2</ContentTemplate> </cc1:TabPanel> <cc1:TabPanel runat="server" ID="tabReportss" > <HeaderTemplate>Reports Info</HeaderTemplate> <ContentTemplate>This is content 3</ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </asp:Content>
namespace OnlineReportSystem.Admin { public partial class AdminRagistration : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnNext1_Click(object sender, EventArgs e) { // Response.Write(TabContainer1.ActiveTabIndex.ToString()); TabContainer1.ActiveTab = TabContainer1.Tabs[TabContainer1.ActiveTabIndex++]; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)