hi all
i ahve one GridView in that i have one Label by clicking on label Pdf File should be open in new Pop window and its not redirecting to the specified URL... for this i used following code..
protected void ViewInvoice(object sender, CommandEventArgs e)
{
int count=GvInvoice.Rows.Count;
GridViewRow row = GvInvoice.Rows[1];
Label in_id=row.Cells[1].FindControl("lblInvoice") as Label ;
if(in_id!=null)
{
string invid=in_id.Text;
string URL_Invoice = "~/Invoices/" + invid + ".pdf?in_id={0}";
Response.Write("<script>");
Response.Write("window.open('URL_Invoice','e.CommandArgument.ToString()')");
Response.Write("</script>");
//Response.Redirect(string.Format(URL_Invoice, e.CommandArgument.ToString()));
}
}
Can any one suggest me Where i went Wrong