open new window open new window

Many times we require to open new window as popup with or without toolbar and statusbar.
Here are several ways to acheive it.

1. Open new window without status bar and toolbar


<asp:HyperLink ID="HyperLink1" runat="server"
1. Click here to popup window without statusbar and tool bar



2.  Open new window with status bar

<asp:HyperLink ID="HyperLink1" runat="server"


2. Click here to popup window with statusbar and tool bar


3. Control height and width of popup window

<asp:HyperLink ID="HyperLink1" runat="server"


3. Click here to popup window with statusbar and tool bar


ASP.NET Response.Redirect to new window

If you want to get the response in new window, you need to add an attribute target="_blank" in your form tag.
When page will do post back it will open response in new window

e.g. <form id="form1" target="_blank" runat

<asp:Button ID="Button1" runat="server" Text="Button" />


Above example will always open response in new window.

Using Ajax Modal popup extender you can popin your controls as explained here


Tags: 2.0 step by step Membership Provider Interview Questions for 2 years or 3 years experianceasp net image File HandlingRemoving aspnet runtime from Convert String To Imagehow to open a blog websiteWhat is web garden in net Write Text On Image and Convert Image To RegisterClientScriptBlock


My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.

I'm Satalaj.