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:
|
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bryian TanPosted Jan 18, 2011, 10:58 PM
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");
}
}