Click here to Skip to main content
16,019,152 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I look for a equivalent of MessageBox that can be used in asp .net project.

if you join the asp control you suggested me with an example it would be welcome.
Posted

I would recommend using jQuery and specifically the alert functionality. That is a simple way to pop up a message box on the screen. Here is a site that shows how to use it:

http://docs.jquery.com/Tutorials:How_jQuery_Works[^]

The code that you are looking for looks like this:

JavaScript
alert("Thanks for visiting!");


If you absolutely must have a ASP.NET method of doing the message box, you could look at the example and explanation here:

A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]
 
Share this answer
 
Comments
VJ Reddy 14-Jun-12 13:24pm    
Good suggestion. 5!
This is the messagebox which can be used in similar manner like winforms and works in webforms.

A Windows Form like MessageBox for ASP.NET Website[^]
 
Share this answer
 
Comments
VJ Reddy 14-Jun-12 13:24pm    
Good reference. 5!

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