A small dialogue box pops up and appears in front of the web page currently in focus. It supplies the user with a choice; they can either press OK to confirm the popup's message or they can press cancel and not agree to the popup's request.
Below is an example of how you would use a confirm dialogue box to warn users about something, giving them the option to either continue on or stay put. We store this value in answer by setting it equal to the confirm function call.
Then add a new SQL Server database named User Db to the App_Data folder and create a table - User Profile.
The User Profile table has columns as shown in the following figure: The User Profile table As you can see from the above model class, the User Profile table consists of eight columns, viz.
After answer has stored the value, we then use answer as a conditional statement.
If answer is anything but zero, then we will send the user away from
One other missing piece is that, as before, we want to preserve the user’s choice in the select box, just in case there’s a validation error in one of the other fields.