Click here to Skip to main content
13,097,609 members (53,639 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Good Afternoon to all,

In my project i have a requirement when i click on the create button it will diplay a confirmation box like "u want create" if i click on yes tha data will be saved into database,otherwise it will be not saved in database.i used javascript and got but i have problem with that i clicked even no button also it will saved in database,so pls help me how to display confirmation box and after clicking yes only the data will be saved into database?

Thanks in advance.......
Posted 30-Sep-12 23:29pm
Updated 30-Sep-12 23:30pm
Abhijit Parab 1-Oct-12 5:32am
what code you have used for that? please mention here.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

confirmation box with yes no
For this, you would need VBScript confirm instead of Javascript. Javascript gives, Ok & Cancel as options whereas VBScript will give you Yes & No.
Please find the link below that has all the options and will help you out: Alerts, Confirms and Prompts [^]


you can try jQuery modal-dialog or UI-confirm-dialog and configure it for yes-no option.
How to Create a jQuery Confirm Dialog Replacement[^]
ASP.NET jQuery UI confirm dialog [^]
ASP.NET JQuery Confirm Dialog[^]


you can use Ajax ModalPopupExtender for it.
Refer: ASP.NET confirmation box with yes/no button options using modalpopup[^]

..and more similar QA on CP Search[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

u didn't mentioned in which language u r working..

just go through this link..hope u will get the solution[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 1 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100