How To: Open a pop-up window using dropdownlist
To open pop-up window using <asp:dropdownlist..>
VB.NET
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)Response.Write("<script>window.open('" + DropDownList1.SelectedValue + "');</script>")
End Sub
C#
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("<script>window.open('" + DropDownList1.SelectedValue + "');</script>");
}
To pop-up using client-side event
VB.NET
DropDownListID.Attributes("onchange") = "<open pop up here>"
C#
DropDownListID.Attributes("onchange") = "<open pop up here>";