In some occasions, we can direct the user to a specific page by using Response.Redirect method in the code-behind side. Well, how can we make the directed page to be displayed in a new browser window? In fact, the answer of this question is not related to Response.Redirect method. This instance can be solved completely by an operation done on the trigger control of this method. For example, if button control carry out the direct process, then the code snippet can be seen below will be enough. By the way, I think it isn't necessary to mention that Button1 control is involved in the form element named form1:)
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Click Me" OnClientClick="form1.target='_blank';" />
It will be adequate to add standard Redirect method to the Click event method of Button.
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Default.aspx");
}
But, how is the process done? form1.target='_blank' expression added in Button1 control and functions in client side transfers the operation to be done in a new window. Thus, the page makes postback on the new page and is directed to Default.aspx page.