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
    Marin Bratanov avatar
    3908 posts

    Posted 23 Oct 2012 Link to this post


    You can use the callback function all three predefined dialogs offer to redirect the page with JavaScript:

    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. 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?
  4. 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.

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

Back to Top