Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are all the different authentication techniques used to connect to MS SQL Server?

1089


What are the Features of a dataset

1307


What is the difference in record set and dataset?

1028


What is oledb connection?

988


What is sql command in ado net?

958


What is ado or jdbc?

924


What is a string variable?

917


What is the DataTableCollection?

1053


Explain the various objects in dataset.

996


Define the data provider classes that is supported by ado.net?

980


What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

988


What are the advantages of oledb compared with other classes?

2794


What are the different ado.net namespaces are available in .net?

1007


How to maintain the relation between two tables in ADO.NET?

1012


How do I delete a row from a DataTable?

1164