First sorry for the english. I’ve recently found out that the MessageBox from Windows.Forms can be used in a web page, but there’s a problem when showing it, it’s not modal. Is there a way to make it modal?
Thanks for any help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you are mistaken. You can use the windows forms message box class from asp.net code and it won’t cause an exception, but it won’t ever show the message box in the page on the user’s web browser. Instead it shows the messagebox on a private desktop on the server.
There are third-party work-arounds you can find on the web that will help you build a modal message in an asp.net page, if you want (many of them rely on javascript’s
confirm()andalert()functions).