protected void BindPrimaryGrid() { con.Open(); SqlDataAdapter sda = new SqlDataAdapter("select * from Salary Where Year='" + Year + "' AND Month='" + PreviousMonth + "' AND Updated='True'";, con); DataTable dt = new DataTable(); sda.Fill(dt); con.Close(); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { HtmlIframe ifrm = new HtmlIframe(); ifrm.ID = dt.Rows[i]["REFNo"].ToString(); ifrm.Src = "StaffSalaryPrint.aspx?REFNo=" + dt.Rows[i]["REFNo"].ToString(); pnlContents.Controls.Add(ifrm); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)