Wednesday, June 16, 2010

Link to an AJAX Tab on a different page

You can use a HyperLink control to open any tab you specify by setting the tab controls ActiveTabIndex.

Example:

Test

Now put this in your code behind:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
TabContainer1.ActiveTabIndex = Request.QueryString("TabID")
Catch ex As Exception
TabContainer1.ActiveTabIndex = "0"
End Try
End Sub

No comments:

Post a Comment