Hi, I have created tab container with two panels -
<asp:TabContainer ID="TabContainer1" runat="server" OnActiveTabChanged="TabContainer1_OnActiveTabChanged">
<asp:TabPanel ID="tab1" runat="server" HeaderText="Assets" TabIndex="1">
<ContentTemplate>
<asp:Panel ID="pnl_assets" runat="server">
<table id="tbl_assets" runat="server" width="1200px" height="200px" align="center">
<tr>
<td>
<asp:ContentPlaceHolder id="cph_assets" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Users" TabIndex="2">
<ContentTemplate>
<asp:Panel ID="pnl_users" runat="server">
<table id="tbl_users" runat="server" width="1200px" height="200px" align="center">
<tr>
<td>
<asp:ContentPlaceHolder id="cph_users" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
First tab - Assets
Second tab - Users
when i am clicking on second tab, my data is not coming.
Code behind is -
protected void TabContainer1_OnActiveTabChanged(object sender, EventArgs e)
{
if (TabContainer1.ActiveTabIndex == 2)
{
Response.Redirect("~/Users/ViewUsers.aspx");
}
}
Tell me how to get this?