I want to ask u that if i add radio button in ado.net
form,and how radion button data insert in SQL2005 Database...

Answer Posted / sumit pardeshi

if(RadioButton1.checked == true)
{
string str="Male";
}
sqlCommand cmd=new sqlcommand("Insert into tablename
values("'+str+'")",con);

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typed dataset ?

860


What is the difference between executequery and executenonquery?

691


What is data view and variable view?

656


What are the Data providers in ADO.Net?

734


Define data adapter?

677


Explain ado.net features?

758


What is oledb driver?

685


Describe datareader object of ado.net with example.

682


What is difference between executequery and executeupdate?

682


What is ado.net tutorial?

675


What is ole in vb?

668


What is the difference between Data adaptor and Data set?

735


What are the main differences between classic ado and ado.net?

722


Which provider is used to connect ms access, oracle, etc…?

720


What is the difference between linq and ado.net?

703