Hi, I added a drop down list in web forms asp.net c#. I double clicked and added this code. Selecting "Length Calculator" should redirect them to another web form. But when I test it, it's not working. But the "Response.Redirect" code works for a button perfectly. Pls help!
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedValue == "Length Calculator")
{
Response.Redirect("Length Converter.aspx");
}
}
Image for the dropdown list items