VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Inserting a radiobutton values in the data base Posted by rizwan9599 on 3 Jan 2007 at 7:30 AM
This message was edited by rizwan9599 at 2007-1-3 7:32:9

hello!
i m using two radiobutton in the form i.e.for one button is used for male and another one is used for female can anyone give coding for the button to insert into database


Report
Re: Inserting a radiobutton values in the data base Posted by DrMarten on 3 Jan 2007 at 11:56 AM
This message was edited by DrMarten at 2007-1-3 12:0:44

: hello!
: i m using two radiobutton in the form i.e.for one button is used for male and another one is used for female can anyone give coding for the button to insert into database

_____________________________________________________________________

Hi,

Put the two radiobuttons in a groupbox, that way only one can be selected.


If radiobutton1.checked = True Then

 sex="Male"

Else

 sex="Female"

EndIf



Try the MSDN library first if you don't have it installed with your Visual Studio.>>
http://msdn.microsoft.com/library/

Put a dot after a control name and some things become obvious.


Regards,

Dr M.

P.S. How about using the word "please" occasionally when asking for
help with code?

Report
Re: Inserting a radiobutton values in the data base Posted by DrMarten on 7 Jan 2007 at 4:02 PM

: hello!
: i m using two radiobutton in the form i.e.for one button is used for male and another one is used for female can anyone give coding for the button to insert into database
:
Hi,

Change the DELETE command in this post to an INSERT.

The post at>> http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=39&MsgID=351851&Setting=A9999F0001

is an example.



Regaards,

Dr M.






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.