function PrintDiv() { var divToPrint = document.getElementById("<%=Printable.ClientID%>"); var popupWin = window.open('', '_blank', 'width=300,height=300'); popupWin.document.open(); popupWin.document.write('<html><body önload='window.print();'>' + divToPrint.innerHTML + </html>'); popupWin.document.close(); } for (int i = 0; i < GridView1.Rows.Count; i++) { CheckBox chk = (CheckBox)GridView1.Rows[i].Cells[0].FindControl("chkselect"); if (chk.Checked) { Salaryproccess(); Page.ClientScript.RegisterStartupScript(Page.GetType(), "Script", "PrintDiv();", true); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)