Click here to Skip to main content
15,917,608 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I did a sample web application in visual studio 2005.But I can't get display message box in visual studio 2005.How can I solve it.
Posted
Comments
Sergey Alexandrovich Kryukov 14-Feb-12 11:21am    
This is not a question. And this is a bad sign. I have a bad feeling that you might not fully understand how Web applications work. I could be wrong though. Nothing can be told for sure unless you post some code sample. In this case, use "Improve question"
--SA
Shahin Khorshidnia 14-Feb-12 11:27am    
If you want something like this: MessageBox.Show("Hello");
in Web application, to show in client side. It doesn't work.
But I think you can use javascript to show message in client side. for example: alert("Hello");
Simla Sneha 15-Feb-12 10:27am    
But Messagebox.show() is only applicable to windows application.It is not applied to web application.

It's a bed thing to use MessageBox into Web Application, then also if you wish to show message box into web application, you have to add reference of "System.Windows.Form", after adding reference you are able to write "MessageBox.Show('Hello');" and it's going to work.
 
Share this answer
 
To show a message box in a web application, you should be using client script, e.g.

alert('hello');

http://www.w3schools.com/js/js_popup.asp[^]
 
Share this answer
 

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