protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
switch (e.CommandName)
{
case "view":
string name = e.CommandArgument.ToString();
String js = "window.open('OpenPDF.aspx?id=" + name + "', '_blank');";
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Welcome", js, true);
break;
}
}
catch (Exception ex)
{
}
}