protected void FillTb() { string strSql = "SELECT * " + " FROM MS_KONTRAK_GIMMICK" + " WHERE NoKontrak = '" + nomor + "'"; DataTable rs = Db.Rs(strSql); // Rpt.NoData(rpt, rs, "Daftar tagihan untuk kontrak tersebut masih kosong."); for (int i = 0; i < rs.Rows.Count; i++) { if (!Response.IsClientConnected) { break; } TableRow r = new TableRow(); TableCell c; c = new TableCell(); c.Text = "- " + rs.Rows[i]["Nama"].ToString() + " " + Cf.Num(rs.Rows[i]["Stock"]) + " " + rs.Rows[i]["Satuan"].ToString(); c.HorizontalAlign = HorizontalAlign.Left; c.Attributes["style"] = "font-size:11pt;font-family:'Times New Roman', Times, serif;"; r.Cells.Add(c); Rpt.BorderNoList(r); // rpt.Rows.Add(r); } }