Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any way to use "messagebox.show" with yes or no options in asp.net c#
instead of using
"using sysytem.windows.form"????
Posted
Updated 17-Feb-14 0:12am
v3

You can try with PInvoke. Check the code is here:
http://msdn.microsoft.com/en-us/library/42b9ea93(v=vs.110).aspx[^]
 
Share this answer
 
If you want the System.Windows.Forms MessageBox, you must reference System.Windows.Forms. But, do you really want to show a MessageBox on the server, when your web whatever is hosted ? I doubt it.

Microsoft has a code example here to kind-of simulate the WinForm MessageBox functionality in ASP.NET: [^].

There's an article here on CP with a custom MessageBox for ASP.NET and Ajax: [^].
 
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