Posted 30 Nov 2011 Link to this post
Posted 01 Dec 2011 Link to this post
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadPageView pg = (RadPageView)rdtabCSD.FindTabByText(
"Page2"
).PageView;
string
pgid = pg.ID;
}
rdtabCSD_TabClick(
sender, RadTabStripEventArgs e)
RadTab tb= e.Tab
as
RadTab;
pgid = tb.PageView.ID;
You can use the approach demonstrated here. It gets the ID of the selected RadPageView and stores it in a hidden field. The you can take this value and check it in the Page_Load event on the server side.
The method I showed you a link to doesn't rely on the tab's Text property. It takes the zero-based index of the tab in the RadTabStrip. You can then use this index to find the tab like so:
int
index = Int32.Parse(hiddenField.Value);
RadTab tab = RadTabStrip1.GetAllTabs()[index];