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

Explain the two fundamental objects in ado.net?

983


Which database is the ado.net sql connection object designed for?

1036


What are the Features of a dataset

1299


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

865


Which namespaces are used for data access?

1197


How to work with disconnected data - the dataset and sqldataadapter?

982


How many major types of connection objects in ADO.NET?

1027


What is difference between executenonquery and executequery?

963


What is ado connection?

946


How to aggregating data across related tables?

1034


Explain what are acid properties?

978


What is the difference in record set and dataset?

1024


What are the usages of the command object in ado.net?

1022


How do you implement locking concept for dataset?

991


What is the default provider in ado.net?

960