Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to display a dialog box in ASP.NET by

MessageBox.Show("string1""string2");


but it is not working. Though I can work in ADO.NET, why am I not able to do so in ASP.NET.

Please guide with the possible solution. Thanks friends.
Posted
Updated 24-Aug-10 8:10am
v2

why am i not able to do so in asp .net
Because they are not available in ASP.NET. MessageBox is available in Winforms.

Possible solution is to use Javascript to show the messagebox. There are customcontrols in this very site that wrap around this javascript and make it as a server control. You can pick those if needed.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Jan-12 1:52am    
Sure, a 5.
--SA
Does this CP article[^] helps?
 
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