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...?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jiteendra SampathiraoPosted Aug 9, 2011, 1:33 AM
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.........
Sahil JaniPosted Aug 9, 2011, 1:27 AM
I have solved the issue using
this code. u can check this code for further reference.