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?
Thanks for your help, but I ended up using vb which works fine for my application.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
WebTab1.SelectedIndex = Convert.ToInt32(Request.QueryString("tab"))
End Sub
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,