sir!
in my ASP.net web form i using Radiobutton (gender(M/F)), and when select the radiobutton that selected text is stored in database.
what is the code using that in VB.net
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted Jan 19, 2010, 1:07 AM
paul danielPosted Jan 19, 2010, 1:04 AM
Try this
string x ;
if ( RadioButton1.Checked == true)
{
x = Male;
}
else if(RadioButton2.Checked == true)
{
x=Female;
}
Now u insert the x value into your db using insert statement