The products is one aspx page and catalogue is another aspx page. I have add in the code but when I click on the catalogue tab it did not redirects to another page.
This is the code I have entered:
Code |
Code |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bryian TanRank #396 · 6.3K reputationPosted Jan 18, 2011, 5:58 PM EST
Try this, make sure to add the onactivetabchanged="TabContainer1_ActiveTabChanged" to the TabContainer control.
protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
{
if (TabContainer1.ActiveTabIndex == 2)
{
Response.Redirect("CataloguePage.aspx");
}
}