Hi,
I have radio button list and have two iteams like : yes and no. And I have also one textbox also.
If I'll select no then that text box visible = false and if i will select yes then text box visible = true.
How should I do that...?
Radio Button Selected index changed
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sahil Jani196 reputationPosted Aug 8, 2011, 9:27 PM EDT
I have solved the issue using
this code. u can check this code for further reference.
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Aug 8, 2011, 9:33 PM EDT
Try this:
======================================================================
protected void ddp_selectIndexchanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedItem.Value == "1")
{
TextBox1.Visible = true;
}
else
{
TextBox1.Visible = false;
}
}
hope it help you.........