I want to use a MessageBox to display a yes/no question, however it is not working. If they are any alternatives on opening a dialog box, please let me know.
Maybe the fact that it is a codebehind file makes a difference?
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.
Yes it does. If you could display a Windows Forms MessageBox from an ASP.NET codebehind file, it would at best be displayed on the server, which isn’t much use.
You need a javascript alert, or if you want to be more modern a jqueryui dialog or similar. Google if you need more details.