Redirect to a new page on clicking Ok of the radalert

4 posts, 0 answers
  1. Dorababu
    Dorababu avatar
    95 posts
    Member since:
    May 2012

    Posted 23 Oct 2012 Link to this post

    How can I redirect the user to a required page on radalert. This is my radalert

    string scriptstring = "radalert('You must save Location for Employee..', 250, 80,'Information');";
                            ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true);
    Here after clicking Ok I would like to redirect the user to that particular page can some one help me
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 23 Oct 2012 Link to this post

    Hi,

    You can use the callback function all three predefined dialogs offer to redirect the page with JavaScript:
    http://www.telerik.com/help/aspnet-ajax/window-dialogs-alert.html
    http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx


    All the best,
    Marin Bratanov
    the Telerik team
    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 their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Teju
    Teju avatar
    10 posts
    Member since:
    Jul 2012

    Posted 08 Jun 2014 Link to this post

     rwm.RadAlert("Status Updated Successfully", 250, 150, "Success", "fnSaveStatusUpdate");

       function fnSaveStatusUpdate(arg)
        {
            window.location.href = "DashBoard.aspx";
        }

    Here we can redirect perfectly, but what about the case when we want to pass some parameters  as query string?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Jun 2014 in reply to Teju Link to this post

    Hi Teju,

    Please try the below JavaScript code snippet to pass the QueryString.

    JavaScript:
    window.location.href = "GetRadEditor.aspx?UserID=" + id;

    Thanks,
    Shinu.
Back to Top