Archive

Archive for September, 2013

Show Alert Message With Redirect Using ASP.Net

September 15, 2013 1 comment

Hi all ,

try this example to display alert message with redirect to Page using JavaScript

In previous posts i show how to display alert message using JavaScript

Display Alert Message With Javascript

Show Alert Message using String Builder

 


public void DisplayMessageWithRedirect(string Message, string URL)
 {
 ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect",
 "alert('" + Message + "'); window.location='" +
 Request.ApplicationPath + "" + URL + "';", true);
 }

Hope this helps

Good Luck.

Advertisements
Categories: ASP.Net, Javascript