Hey hope this may help!!!
/////////////////////JavaScript///////////////////
function open_win(link)
{
window.open(link);
}
/////////////////////////////////////////////////////////
/*******************************GridView************************************/
<asp:TemplateField>
<itemtemplate>
<asp:HyperLink ID="HyperLink4" runat="server" ForeColor="Black" NavigateUrl="#">Details
</itemtemplate>
/****************************************************************************/
//////////////////////////////////Code behind///////////////////////////////
protected void GVInbox_RowDataBound(object sender, GridViewRowEventArgs e)
{
DataTable dtNEW = new DataTable();
dtNEW = (DataTable)Session["Inbox"];
if (e.Row.RowIndex > -1)
{
string strLink1 = "Page.aspx?id=" + value + "&mid=" + value + "";
((HyperLink)e.Row.Cells[i].Controls[1]).Attributes.Add("onclick", "open_win('" + strLink1 + "')");
}
}
If there is some problem let me know...k