Show (Open) Modal Popup Window on DropDownList Item selection in ASP.Net

Last Reply on Mar 10, 2015 02:24 AM By blochmoin

Posted on Mar 10, 2015 01:58 AM

how to open Popup Window from dropdown list ......

http://www.aspsnippets.com/Articles/JavaScript-windowopen-Display-Modal-Popup-Window.aspx.

like this link but 

open in dropdown selected item.

 

You are viewing reply posted by: blochmoin on Mar 10, 2015 02:24 AM.
Posted on Mar 10, 2015 02:24 AM

 

  protected void ddlsupplier_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlsupplier.SelectedValue == "New")
        {
           Response.Write("<script language='javascript'>window.open('AddSupplier.aspx','Popup','width=550,height=370,left=350,top=200,resizable=no')</script>");

        }
    }

done using this code