-
Dropdown if statement
Hi there,
In my asp application I am trying to navigate to a certain page based on a dropdown selection.
If I had :
Code:
<asp:DropDownList ID="DD_OptionSelect" data-role="none" runat="server">
<asp:ListItem>Option 1</asp:ListItem>
<asp:ListItem>Option 2</asp:ListItem>
</asp:DropDownList>
and I also had:
option1.aspx and option2.apsx pages.
I would like to have an if statement for the dropdown selector.
something like :
IF the user has selected option one then goto option1.aspx
ELSE goto option2.aspx
Any help would be muchly appreciated. :)