Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
498
Retain selected tab on post back
posted

Hi,

How do I maintain the users selected tab on post back.

For example, let's say I have 5 tabs and the user picks tab 2. Now the user hits submit outside of the web tab that causes a post back. Currently on my page, the tab selection is reverted back to the default i.e. tab 1. How do I get the user's selected tab i.e. tab 2 to be selected when the page posts back.

Any help will be greatly appreciated.

Parents
No Data
Reply
  • 5105
    Offline posted

    Hi, there,

    My suggestion would be: handle onpostback and get the selected index of your tab and then set the selected index back to it.

    Is this suggestion of any help to you?

Children