![]() |
|
#1
|
|||
|
|||
Radio button, confirm or a message boxI am having two radio buttons on the page with Yes/No option and a payment received button right next to the radio buttons.
First time when the page is loaded, one of the two radio buttons is selected based on the boolean type field value in the database 0 OR 1. when the user decides to change the value from yes to No and click the payment received button, I not only want to make changes to the database field but also show a confirm box for the user to be sure and then change the field value. I am having javascript function in my html page, I have two radio buttons, and a regular submit button, In my code behind page i am writing an if statement and want to prompt the confirm box before i make the changes to the data field in the database. right now when i run the program it changes the value in database, but does not show me the box. Please help me. Thanks/Saru Edit/Delete Message |
|
#2
|
||||
|
||||
Re: radio button, confirm or a message boxHi Friend,
I think following code will help you! I wrote this in C# and this will work in vb.net as well and you can implement the same idea in vb 6 the code will be slightly different but the concept remains the same. C-SHARP / C# Code:
Last edited by admin : 28-Sep-2006 at 06:08.
Reason: Please insert your C# code between [csharp] & [/csharp] tags
|
|
#3
|
|||
|
|||
Re: radio button, confirm or a message boxThe above answer is how to do it in WinForms.
To do it in WebForms, the following should be sufficient in your Page_Load: C-SHARP / C# Code:
|
|
#4
|
|||
|
|||
Re: radio button, confirm or a message boxQuote:
Hmm, was just browsing I thought I would correct myself. The code above should be: C-SHARP / C# Code:
|
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enable radio button and check box | shinyhui | MS Visual C++ / MFC Forum | 2 | 14-Jul-2008 10:21 |
| Check Status of Radio Button | 1221NoSkill | MS Visual C++ / MFC Forum | 1 | 23-Apr-2006 09:39 |
| Group Round buttons (radio buttons) | toaster | FLTK Forum | 1 | 03-Jan-2006 06:57 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 03:38 |
| radio button problem | zuzupus | MySQL / PHP Forum | 1 | 08-Aug-2003 03:25 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The