foreach (DataGridItem item in dgDuration.Items) { CheckBox chkBox = (CheckBox)item.FindControl("cbstrChild"); if (chkBox.Checked) { string script = "window.open('Report.aspx?Id=2&Cont=" + item.Cells[0].Text.Trim() + "', '');"; Page page = HttpContext.Current.Handler as Page; if (page != null) { ScriptManager.RegisterStartupScript(this, this.GetType(), "NewWindow", script, true); } } }
ScriptManager.RegisterStartupScript(this, this.GetType(), "NewWindow"+i.ToString(), script, true); ++i;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)