Open new Window from Server side without Page Reload in ASP.Net

Last Reply on Mar 12, 2015 12:56 AM By Andrea

Posted on Mar 12, 2015 12:56 AM

i am try this code to open popup window 

popup window is open but page is reload

asp:DropDownList ID="ddlname" runat="server" CssClass="textbox2" AutoPostBack="True" OnSelectedIndexChanged="ddlname_SelectedIndexChanged"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="ddlname" Display="Dynamic" Font-Size="Larger" ForeColor="Red" ValidationGroup="addp" InitialValue="--Select--"></asp:RequiredFieldValidator>
                           

 

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

i also use update panel then popup window cant open....

i want open popup window without reloading current page

Posted on Mar 12, 2015 12:56 AM
Hi @blochmoin,
Please try the following

Open new Window from Server side without Page Refresh in ASP.Net

It might help you.

Cheers Andrea.