This is a migrated thread and some comments may be shown as answers.

Redirect to a new page on clicking Ok of the radalert

3 Answers 269 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dorababu
Top achievements
Rank 1
Dorababu asked on 23 Oct 2012, 06:39 AM
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

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Oct 2012, 10:36 AM
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.
0
Teju
Top achievements
Rank 1
answered on 09 Jun 2014, 03:29 AM
 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?
0
Shinu
Top achievements
Rank 2
answered on 10 Jun 2014, 06:25 AM
Hi Teju,

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

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

Thanks,
Shinu.
Tags
Window
Asked by
Dorababu
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Teju
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or