Question: I want to open a new tab or a new page by using `Response.Redirect` in a button click handler. I'm using a query string to pass some values. How can I open he page in a new tab?

```
protected void btnSave_Click(object sender, EventArgs e)
{
    ...//some code to insert records
    Response.Redirect("NewQuote.aspx?val=" + this.txtQuotationNo.Text);//displaying gridview in other page to print what needed
}

```

Answer: 
Simple solution is here.

Edit your html button element and add attribute *OnClientClick="target ='\_blank';"*.

```
<asp:Button ID="myButton" runat="server" CssClass="btn1"
            OnClick="btnSave_Click" OnClientClick="target ='_blank';" />

```

Then in btnSave\_Click

```
protected void btnSave_Click(object sender, EventArgs e) { 
    Response.Redirect(url);
}

```
You can use ScriptManager to do the needed:

```
private void Redirect_New_Tab(string url_To_Open)
{    
    string modified_URL = "window.open('" + url_To_Open + "', '_blank');";
    ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", modified_URL , true);
}

```