Hi @Hemanth B ,
I suggest you could check if you run the method of SelectedIndexChanged. Do you have add AutoPostBack="true" in the dropdownlist?
I have created a test and it works.Just like this:
<asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Value="0" Text="--Select--"></asp:ListItem>
<asp:ListItem Value="Length Calculator" Text="Length Calculator"></asp:ListItem>
</asp:DropDownList>
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedValue == "Length Calculator")
{
Response.Redirect("2175764.aspx");
}
}
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.