try
protected void LinkButton_Click(Object sender, CommandEventArgs e)
{
strURL = "";
LinkButton lb = (LinkButton)sender;
GridViewRow row1 = (GridViewRow)lb.NamingContainer;
strURL = e.CommandArgument.ToString();
Response.Write("<script>");
Response.Write("window.open('"+strURL+"','_blank')");
Response.Write("</script>");
}
Alternate and effective solution
replace the
linkbutton
with an
anchor
tag
<a href='<%# Eval("T_Link") %>' target="_blank">Link</a>