I am using the TabContainer in my asp.net app. It has 15 tabs (TabPanels). I would like to redirect a user to a URL when the first tab is clicked. I also need to add some querystring values to the URL.
I tried this is the code behind:
protected void TabContainer_ActiveTabIndexChanged()
{
if (TabContainer1.ActiveTabIndex == 0)
{
string redirectURL = "Case.aspx?Action=0&CaseId=" + lblCaseId.Text + "&ChildId=" + lblChildId.Text
Response.Redirect(redirectURL);
}
}
And this in the ASPX page:
<cc1:TabPanel ID="TabPanel8" runat="server" OnClientClick="TabContainer_ActiveTabIndexChanged">
However, it broke the page.
Thanks for your time.