Click here to Skip to main content
15,888,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use message box through javascript in ASP.NET?
Posted
Comments
Arvind Jha 18-May-13 11:08am    
I DONT WANT TO SEND AN ALERT ONLY A MESSAGE BOX
[no name] 18-May-13 11:19am    
Why are you screaming about it? What have you tried for yourself? An alert is what you want to do. Displaying a messagebox on a web page does not make any sense at all since the messagebox would be displayed on the server not on the client. So you need to be more clear in what you want to do.

Have a look at below link.

http://www.w3schools.com/js/js_popup.asp
 
Share this answer
 
Add this code in codebehind where you want to display the message box.

C#
Response.Write("<script type='text/javascript'>");
Response.Write("alert('Simplest script ever.');");            
Response.Write("</script>");
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900