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
150
WebTab
posted

Is it possible to target a tab in a url? For example, domain.com/tabedpage.aspx?id=2, so the browser navigates to a page and the second tab is selected? 

Parents
No Data
Reply
  • 3115
    Suggested Answer
    Offline posted

    Hi,

    I thing it's better use that value from the URL and hook to the some client event on the WebTab i.e. Loaded:

     

     

     

     

     

    <ClientEvents Loaded="loaded" />

     

    that's inside the WebTab markup, and then just use the following JavaScript function:

     

    <script type="text/javascript">

    loaded(sender, args)

    {

     

    sender.set_selectedIndex(2);

     

     

     

    }

     

     

     

    </script>

     

    the following code will select the third tab, as the count starts from zero

    Thanks,

Children