AJAX tabs problem
-
Hello all, please forgive my newbie-ness.... (at ASP.NET) I have a tabcontainer on my masterpage where each time a tab is clicked it actually shows a different .aspx page for each tab. First, I'm not sure if I'm even going about this the right way. It works, but it's kinda slow and a very visible transition. I just call 'Response.Redirect()' in the 'ActiveTabChanged' event depending on which tab was clicked. Secondly, even though this works to switch from page1 to page2, it always shows the active tab as the first one after clicking on the second one, even though the second page is now showing. I even tested setting it back explicitly, and it still doesn't work.
protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
{
switch (TabContainer1.ActiveTabIndex)
{
case 0:Response.Redirect("default.aspx"); break; case 1: Response.Redirect("default2.aspx"); TabContainer1.TabIndex = 1; break; } }
Thanks in advance
My Music | My Pics | My Articles BlackDice