Redirect to another page.

2 posts, 0 answers
  1. Berkman
    Berkman avatar
    23 posts
    Member since:
    Feb 2013

    Posted 05 Jul 2013 Link to this post

    Hi

    I am opening a radwindow from my aspx to update some data in the grid. And after updating the radwindow is closed and I need to automatically redirect to anothet page. No cs code is needed.

    Thanks for your reply
    Berkman
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 05 Jul 2013 Link to this post

    Hello Berkman,

    You can use the OnClientClose event of the control to redirect the browser:
    http://demos.telerik.com/aspnet-ajax/window/examples/clientsideevents/defaultcs.aspx
    http://www.w3schools.com/jsref/obj_location.asp
    <telerik:RadWindow ID="RadWindow1" runat="server" OnClientClose="redirectPage">
    </telerik:RadWindow>
    function redirectPage()
    {
        window.location = "../destinationPage.aspx";//some sample URL
    }
    Note that this script is in the page where the RadWindow is declared and opened, not in the content page.

    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top