Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to create a confirm message box with yes or no and i have decide based on those yes or no options
Posted

For example, you can use jQuery dialiog: http://jqueryui.com/dialog[^].

There are many 3rd-party components, in particular, jQuery UI plug-ins collectively known as "modal pop-up", with different features, effects, etc: http://bit.ly/1Ag0G43[^].

The benefit of such solution is that the modal behavior is simulated on the same Web page. Real pop-ups (creating a new browser window) are ugly, irritating and can be blocked by users using special browser plug-ins developed for this purpose; and the confirm function embedded in JavaScript is just ugly, platform-dependent and not flexible.

—SA
 
Share this answer
 
Comments
Maciej Los 11-Mar-15 15:40pm    
+5!
Sergey Alexandrovich Kryukov 11-Mar-15 16:05pm    
Thank you, Maciej.
—SA
in the button or link button where you want pop up as a confirm message write down this code for button

JavaScript
OnClientClick="return confirm('Are You Sure?');"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900