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

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

524


How to identify the controls which can be used for binding data?

547


What are all the commands used with Data Adapter?

518


What is connected architecture in ado.net?

522


How to add a check box or a dropdown list to a column in a datagrid?

535






What is a dynaset in access?

521


What is datasource in ado.net?

584


What is aggregate root?

494


What are the essential features of ado.net?

540


Compare Data Reader & Dataset in ado.net?

540


How to connect and retrieve data from database using dataset

536


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

534


Which control of the BindingNavigator returns the current position within the data source?

729


Define data adapter?

509


Which object is used to add relationship between two Datatables?

573