open new page in new window in gridview buttonfield
<p>i have gridview in my asp.net page.</p>

<pre><code>&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true" CssClass="Gridview"
                    OnRowCommand="GridView1_RowCommand"&gt;
                    &lt;Columns&gt;
                        &lt;asp:ButtonField Text="VIEW" ButtonType="link" CommandName="view" /&gt;
                    &lt;/Columns&gt;
                &lt;/asp:GridView&gt;
</code></pre>

<p>I want to open new page in new window.</p>

<p>for that i have used below code.(this code is not working !- please check if any error) </p>

<pre><code>protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
    if (e.CommandName.Equals("view"))
    {
        int index = Convert.ToInt32(e.CommandArgument);
        GridViewRow gvrow = GridView1.Rows[index];
        String id= gvrow.Cells[1].Text;
        string url = "~/Mypage.aspx?myid=" + id;
        Response.Write("&lt;script&gt;window.open( 'www.google.com' , '-blank' );&lt;/script&gt;");
    }
}
</code></pre>

<p><strong>I am  binding data at runtime in GRIDVIEW</strong>
please  keep this in mind.</p>

<p>so that i can not use hyperlink field.</p>

<p>Suggest me ways to open new page in new window using coding in gridview. </p>
