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 happens when u try to update data in a dataset in .NET while the record is already deleted in SQL SERVER as backend?

5 Answers  


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

0 Answers  


WHAT IS DIFF B/W VIEWS AND STORED PROCEDURE

2 Answers  


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

0 Answers  


What is the default Timeout for SqlCommand.CommandTimeout property?

0 Answers  






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

0 Answers  


What is Pooling? what is data pooling? what is sql pooling?

3 Answers   TCS,


how we can fire event in databound coulm in datagfrid withot using button?

0 Answers   Tech Mahindra,


What are the ado.net objects?

0 Answers  


Where is adodb dll located?

0 Answers  


Does entity framework use ado.net?

0 Answers  


How is entity framework different from ado.net?

0 Answers  


Categories