I have a DropDownList with several options. I want the user to select an option and when the Next button is clicked, the page is redirected to its corresponding page.
ex.
If the user chooses option A > Next button > Page A
if the user chooses option B > Next button > Page B
How exactly do I do this, please?
Additional Details:
There is only one DropDownList, values being populated from a connected database and one Next button.
Update:
I've used the below switch statement. It is redirecting but no matter what the choice is, it is always redirecting to the Birthday.aspx page.
switch (lstCategory.SelectedValue.ToString())
{
case "Birthday":
Response.Redirect("Birthday.aspx");
break;
case "Christmas":
Response.Redirect("Christmas.aspx");
break;
case "Valentine":
Response.Redirect("Valentine.aspx");
break;
}
Problem Solved!
All I needed to do was Enable AutoPostBack from the DropDownList