for (int i = 0; i < GridView1.Rows.Count; i++) { Class1 su1 = new Class1(); su1.send1 = ((Label)GridView1.Rows[i].FindControl("id")).Text.Trim(); su1.send2 = ((Label)GridView1.Rows[i].FindControl("name")).Text.Trim(); su1.send3 = ((Label)GridView1.Rows[i].FindControl("Price")).Text.Trim(); su1.send4 = ((Label)GridView1.Rows[i].FindControl("sale")).Text.Trim(); su.Add(su1); } myRpt.Load(Server.MapPath("~/Pages/Report/RE_PAPER.rpt")); myRpt.SetDataSource(su); myRpt.SetParameterValue("select_year", Label1.Text); Session["rpt"] = myRpt; Response.Redirect("~/Pages/RE_REPORT.aspx"); myRpt.Close();
Response.Redirect("~/Pages/RE_REPORT.aspx");
ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "<script>window.open('RE_REPORT.aspx');</script>");
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง