Edit this page

Cross-Page Postback

You can have your tab strip cause postbacks to a different Web page from the one that contains it. Simply set the PostBackUrl property to the page that should handle the postback.

<telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server" PostBackUrl="CrossPageCS.aspx" OnTabClick="RadTabStrip1_TabClick" DataSourceID="TabStripDS">

Once in the second page, you can access the the tab strip (or any other control) on the previous page using the Page.PreviousPage property:

public partial class CrossPageCS : XhtmlPage
  protected void Page_Load(object sender, EventArgs e)
     if (Page.PreviousPage == null)
     RadTabStrip tabstrip = (RadTabStrip)Page.PreviousPage.FindControl("RadTabStrip1");
Partial Class CrossPageVB
  Inherits System.Web.UI.Page
  Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
    If Page.PreviousPage Is Nothing Then
    End If
    Dim tabstrip As RadTabStrip
    menu = CType(Page.PreviousPage.FindControl("RadTabStrip1"), RadTabStrip)
  End Sub
End Class       
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article