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 / lalitkumar

if value is integer
sqlcommand cmd=new sqlcommand("insert into tablename
values("+convert.toint32(radiobutton1.selecteditem.text)+"",con);

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the essential features of ado.net?

702


What is the functionality of data provider in ado.net?

660


Which keyword is used to accept variable number of parameters?

867


What is aggregate root?

708


What is ado data control?

712


How do you update a dataset in ado.net and how do you update database through dataset?

667


What do you know about ado.net's objects?

688


Define Execute Reader?

800


What is data view and variable view?

656


What is a column variable?

670


Explian About DataAdapters

766


Which is the best method to get two values from the database?

703


Explain the architecture of ado.net?

779


Which ado.net object is very fast in getting data from the database?

842


Compare Data Reader & Dataset in ado.net?

733