New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Cross-Page Postback

You can have the buttons in your toolbar cause postbacks to a different Web page from the one that contains them. Simply set the PostBackUrl property to the page that should handle the postback. You can set the PostBackUrl for the entire toolbar, or for individual buttons. If you set the PostBackUrl in both places, the URL of the button overrides the setting on the toolbar:

ASPNET
<telerik:RadToolBar RenderMode="Lightweight" ID="RadToolBar1" runat="server" Skin="Outlook" PostBackUrl="CrossPage.aspx">
    <Items>
        <telerik:RadToolBarButton runat="server" Text="Button1" PostBackUrl="PageA.aspx" />
        <telerik:RadToolBarButton runat="server" Text="Button2">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>

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

C#
public partial class CrossPage : XhtmlPage
{   
    protected void Page_Load(object sender, EventArgs e)   
    {      
        if (Page.PreviousPage == null)      
        {          
            Response.Redirect("Default.aspx");      
        }      
        
        RadToolBar toolBar = (RadToolBar)Page.PreviousPage.FindControl("RadToolBar1");   
    }
}				
Not finding the help you need?
Contact Support