Skip to content

How to insert radiobuttonvalues to database?

Asked Aug 30, 2007, 1:58 AM EDT1 answer
Share
LinkedInX

i m working with vb.net for windows application..

in my application i used 8radio buttons for 4fileds in my application..like male or female..

....whn i run my application i have to choose 4 radio  buttons out of 8(4fields)...

.when i  click Add button i want store information about which button i clicked in radion button controls... i.e. i want store information about radion buttons..i know how to insert text to database but i dono how we can insert radion button values to Database.... can u explain sir with code sir....

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    hi,

    if u know how to store text ... then u can easily store the value of radio button...

    what kind of value do radio button returns?????

    ==>Boolean value... So in database u'r table attribute should of type bit. don't worry about true/false value return by a radio button. they automatically get converted to 1/0 resp.

    thanx

    0