Message Box
Can i have a message box displayed as we have in Vb.Net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted May 23, 2009, 7:07 AM EDT
Mohit Jain19 reputationPosted May 25, 2009, 2:27 AM EDT
Hi Dorababu,
In which language you want to use the MessageBox. Is this C# or it is ASP.Net. To use iIn C#, You can reference System.Windows.Forms dll and import the same namespace in your class. After this you can use MessageBox.Show method as we use in VB.Net.
If you want in ASP.Net then it is not recommended to use in ASP.Net as it will halt the server side processing for the time until the user does not click on OK or Cancle button. It is better we use server side validation for server and JavaScript for client side validation.
Hope this help.