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...

Answers were Sorted based on User's Feedback



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

Answer / vinay kumar v

If(Radiobutton.checked == true)
{
string str1 = "Male";
}

insert into #t value(str1);

Is This Answer Correct ?    9 Yes 1 No

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

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

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

Answer / vasu

Using Dataset first create data row then
dr[index]=radiobuttonid.selecteditem;

Is This Answer Correct ?    14 Yes 7 No

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

Answer / claivan

RadioButton control doesn't have SelectedItem property. You
need to use the Checked property of the RadioButton.

Is This Answer Correct ?    10 Yes 3 No

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

Answer / preethi

String radiovalue;
radiovalue=radiobuttonid.selecteditem.Text;
and pass that string to database

Is This Answer Correct ?    11 Yes 9 No

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

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

More ADO.NET Interview Questions

What are all features of ADO.Net?

0 Answers  


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

0 Answers  


What is namespace in ado.net?

0 Answers  


how do u connect ado.net to sql server

1 Answers   Microsystems,


IF we have lot of records in Database. How we can handle them?

5 Answers   Honeywell,


Which method do you invoke on the DataAdapter control to load your generated dataset with data?

4 Answers  


What are good ado.net object to replace to ado recordset object.

0 Answers  


How many types of data table are in SQL.NET

4 Answers   Chetu India, HCL, MAHINDRA,


Which object needs to be closed?

0 Answers  


What providers do you use to connect to oracle database ?

4 Answers   Digital GlobalSoft,


What are the Features of a dataset

0 Answers   BirlaSoft,


What DataReader class do in ADO.NET ?

0 Answers   NA,


Categories