Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. AJAX tabs problem

AJAX tabs problem

Scheduled Pinned Locked Moved Web Development
csharpasp-netcomtoolshelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BlackDice
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups