0
在我的应用程序中有复选框的网格视图,选择多个复选框单击打印按钮在单独的窗口中打开pdf。 我的代码是如何使用asp.net在新窗口中打开多个pdf文件
for (int i = 0; i < grdAdditionalInsured.Rows.Count; i++)
{
CheckBox chk = (CheckBox)grdAdditionalInsured.Rows[i].Cells[0].FindControl("chkAdditionalInsured");
if (chk.Checked == true)
{
//**some code to get the id based on values**
string file = "/CertPrints/" + id.ToString() + ".pdf";
String js = @"WindowPopup('" + file + "');";
ScriptManager.RegisterStartupScript(this, this.GetType(), file, js, true);
}
}
上面的代码只显示最后一个记录pdf文件,请给我建议。
感谢并接受了投票非常感谢! – bUKaneer 2013-04-30 11:12:21