asp.net - vb - script: Have label and textbox hidden until a user selects option from DropListBox?

sleuth

New member
I am working on a web page and I need to hide/show different parts depending on what the user selects.

I want to have a dropdownlist :
<asp:DropDownList ID="Applied" runat="server" Width="134px">
<asp:ListItem Selected="True" Value="no">No</asp:ListItem>
<asp:ListItem Value = "yes" >Yes(If yes, Select Date)</asp:ListItem>

And if the user selects "yes" on the list, it makes the calender:
<asp:DropDownList ID="Applied" runat="server" Width="134px">
<asp:ListItem Selected="True" Value="no">No</asp:ListItem>
<asp:ListItem Value = "yes" >Yes(If yes, Select Date)</asp:ListItem>


</asp:DropDownList>

<br />
<asp:Calendar ID="Calendar1" runat="server" Visible="False"></asp:Calendar>


Visible to "true"

anyone know what the script for this would be?
</asp:DropDownList>
 
Back
Top