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. ASP.NET
  4. Tabs control - Ajax Control Toolkit

Tabs control - Ajax Control Toolkit

Scheduled Pinned Locked Moved ASP.NET
sysadmintestingbeta-testinghelpquestion
7 Posts 3 Posters 2 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.
  • K Offline
    K Offline
    kontax
    wrote on last edited by
    #1

    Hi, I'm using the Ajax Control Toolkit, and I have a problem with the Tabs control. On the Control Tollkit description it's written that the selected page should remain enabled after a postback..But it doesn't happens. I'm using Visual Web Developer, and testing the pages using his virtual server. After a postback the selected tab is changed, and is always selected the one who is open in the Web developer page.. Suggestions? Thanks!

    E J 2 Replies Last reply
    0
    • K kontax

      Hi, I'm using the Ajax Control Toolkit, and I have a problem with the Tabs control. On the Control Tollkit description it's written that the selected page should remain enabled after a postback..But it doesn't happens. I'm using Visual Web Developer, and testing the pages using his virtual server. After a postback the selected tab is changed, and is always selected the one who is open in the Web developer page.. Suggestions? Thanks!

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      you may need to use if (Page.IsPostBack == true) { do something i.e. set current tab as default } or not use default tab put your code up if you want hope that makes sense

      K 1 Reply Last reply
      0
      • K kontax

        Hi, I'm using the Ajax Control Toolkit, and I have a problem with the Tabs control. On the Control Tollkit description it's written that the selected page should remain enabled after a postback..But it doesn't happens. I'm using Visual Web Developer, and testing the pages using his virtual server. After a postback the selected tab is changed, and is always selected the one who is open in the Web developer page.. Suggestions? Thanks!

        J Offline
        J Offline
        Jesse Squire
        wrote on last edited by
        #3

        In the prototype that I tested with, the tab control did retain its value through postbacks, whether I changed tabs by clicking them in the UI or used the client script API to set the tab. The only time that I was able to reproduce the behavior that you are seeing is when I explicitly set the ActiveTabIndex property of the control on the server side. In that case, the index that I requested was honored. Are you setting the ActiveTabIndex property at all? If so, you may need to ensure that you're only setting it when not in a postback. Hope that helps. :)

        --Jesse

        "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

        K 1 Reply Last reply
        0
        • J Jesse Squire

          In the prototype that I tested with, the tab control did retain its value through postbacks, whether I changed tabs by clicking them in the UI or used the client script API to set the tab. The only time that I was able to reproduce the behavior that you are seeing is when I explicitly set the ActiveTabIndex property of the control on the server side. In that case, the index that I requested was honored. Are you setting the ActiveTabIndex property at all? If so, you may need to ensure that you're only setting it when not in a postback. Hope that helps. :)

          --Jesse

          "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

          K Offline
          K Offline
          kontax
          wrote on last edited by
          #4

          no, i'm not using the ActiveTabIndex, I'm just using the tabs without properties at all.. ??

          J 1 Reply Last reply
          0
          • E eyeseetee

            you may need to use if (Page.IsPostBack == true) { do something i.e. set current tab as default } or not use default tab put your code up if you want hope that makes sense

            K Offline
            K Offline
            kontax
            wrote on last edited by
            #5

            I think I can do something similar, but I can't understand why it doesn't works with me, while it's supposed to work! suggestions??

            1 Reply Last reply
            0
            • K kontax

              no, i'm not using the ActiveTabIndex, I'm just using the tabs without properties at all.. ??

              J Offline
              J Offline
              Jesse Squire
              wrote on last edited by
              #6

              It may be helpful to post some of your code at this point, as I'm unable to reproduce the behavior that you're seeing. Hopefully, that will help us to find the issue.

              --Jesse

              "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

              K 1 Reply Last reply
              0
              • J Jesse Squire

                It may be helpful to post some of your code at this point, as I'm unable to reproduce the behavior that you're seeing. Hopefully, that will help us to find the issue.

                --Jesse

                "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

                K Offline
                K Offline
                kontax
                wrote on last edited by
                #7

                The matter is that it' doesn't depend from the code I used.. Every time I create a Tab panel from the Control Toolkit, even in a new page of a new project, the active tab is not preserved after postback. Could it depend from Visual Web Developer?I'm trying to test it with the virtual server of VWD, perhaps it should work if the application is online.. Or not? Is it normal to have it not working if trying from VWD? Thanks!

                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