i m using visual studio 2010..
problem is , i want to use MessageBox. But when i use MessageBox(); it is showing error as MessageBox is not existing in current content..
Loading
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
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 10, 2013, 12:31 AM EDT
you are developing windows application or Web application.
Messagebox is only available in windows. For web you have to use alert message by using javascript
Joxin Stanly181 reputationPosted Sep 10, 2013, 12:59 AM EDT
please have a look @ below link-:
http://code.msdn.microsoft.com/CSASPNETMessageBox-3e8c6273
Hope this helps..
Manj N144 reputationPosted Sep 10, 2013, 1:14 AM EDT
Sunny SharmaRank #223 · 11.1K reputationPosted Sep 10, 2013, 1:28 AM EDT
You can also use any of readily available JavaScript library to do make your task easier, efficient and beautiful.
Refer to these links below, they are few of them:
http://needim.github.io/noty/
http://www.designyourway.net/drb/a-collection-of-useful-jquery-modal-dialog-boxes-31-plugins/
Hope it helps :)
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 10, 2013, 1:49 AM EDT
agree with sunny.
In web application, we may use alert box (javascript) or any other 3rd party jquery model popup..
window.alert("Test text");
Or
alert("Test text");