Home > DeveloperSection > Forums > Problem in displaying alert box in asp.net
yash Singh
yash Singh

Total Post:15

Points:105
Posted on    November-26-2010 1:18 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1537  View(s)
Rate this:
how we show the alert box in code behind of asp.net



Amit Singh

Total Post:103

Points:721
Posted on    November-26-2010 1:45 AM

we display the alert box in asp.net by using Registerscript function.
Example:
Syntax:
Void ClientScriptManager.RegisterStartupScript(Type type,string key, string script)

Example:
Page.ClientScript.RegisterStartupScript(GetType(), @"startup", @"<script>alert('" + Hello + "');</script>");
       

Don't want to miss updates? Please click the below button!

Follow MindStick