[RESOLVED] Trying to display a textbox when a certain thing is selected in a ddl...
ok im trying to make a textbox and label appear when the user selects "Other" from the drop down list, this is the code i have but for some reason its not doing anything when "Other" is selected.
Im using VS2003, C# Webform.
Code:
private void ddlReason_SelectedIndexChanged(object sender, System.EventArgs e)
{
if (ddlReason.SelectedValue == "Other")
{
this.txtOtherReason.Visible = true;
this.lblOtherReason.Visible = true;
}
}
Re: Trying to display a textbox when a certain thing is selected in a ddl...
does "Other" definatly start with a capital O?
Re: [RESOLVED] Trying to display a textbox when a certain thing is selected in a ddl.
yeah other definately starts with an captial O, hehe. actually i just set that ddl to autopostback and now it works, i knew it was something down those lines, lol.