Accessing Tab based on URL

2 posts, 1 answers
  1. JC
    JC avatar
    30 posts
    Member since:
    Feb 2013

    Posted 28 Feb 2013 Link to this post


    Is it possible to access a Tab in cs page based on the URL to which its pointing? To make the requirement more clear, I have few tabs in my page which got different NavigateUrl values. Based on this value I want to access one particular tab at the server side?

  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Feb 2013 Link to this post

    Hello JC,

    It is possible to access a tab at the server side using the FindTabByUrl method. The FindTabByUrl method returns the first tab in the tab strip whose NavigateUrl property matches the parameter. Please have a look at the following code.

    RadTab _TabControl1= RadTabStrip1.FindTabByUrl(stringUrl);

    To work with cookie as well as cookieless sessions you can try the following code.

    string urlWithSessionID = Response.ApplyAppPathModifier(Request.Url.PathAndQuery);
    RadTab tab = RadTabStrip1.FindTabByUrl(urlWithSessionID);


  3. DevCraft R3 2016 release webinar banner
Back to Top