Home > ASP.Net, Javascript > Show Alert Message With Redirect Using ASP.Net

Show Alert Message With Redirect Using ASP.Net


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
  1. March 12, 2015 at 5:12 am

    I am truly delighted to glance at this webpage posts which includes plenty of useful information, thanks for providing such data.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: