This is a migrated thread and some comments may be shown as answers.

Accessing Tab based on URL

1 Answer 21 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
JC
Top achievements
Rank 1
JC asked on 28 Feb 2013, 07:32 AM
Hi,

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?

Thanks,
JC.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 28 Feb 2013, 11:32 AM
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.

C#:
RadTab _TabControl1= RadTabStrip1.FindTabByUrl(stringUrl);

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

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

Thanks,
Princy.

Tags
TabStrip
Asked by
JC
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or