Hi indradeo,
Refer below code.
HTML
<asp:DropDownList runat="server" ID="ddlItems">
<asp:ListItem Text="Select" Value="0" />
<asp:ListItem Text="upl" Value="upl" />
<asp:ListItem Text="emg" Value="emg" />
<asp:ListItem Text="Cisf" Value="Cisf" />
</asp:DropDownList>
<br />
<asp:Button Text="Login" runat="server" OnClick="OnLogin" />
Code
C#
protected void OnLogin(object sender, EventArgs e)
{
// Login validation code.
switch (ddlItems.SelectedItem.Text.Trim().ToLower())
{
case "upl":
Response.Redirect("upl.aspx");
break;
case "emg":
Response.Redirect("emg.aspx");
break;
case "cisf":
Response.Redirect("cisf.aspx");
break;
default:
break;
}
}
VB.Net
Protected Sub OnLogin(ByVal sender As Object, ByVal e As EventArgs)
' Login validation code.
Select Case ddlItems.SelectedItem.Text.Trim().ToLower()
Case "upl"
Response.Redirect("upl.aspx")
Case "emg"
Response.Redirect("emg.aspx")
Case "cisf"
Response.Redirect("cisf.aspx")
Case Else
End Select
End Sub