cusDetail.getCustomerDetail myCusDetail = new cusDetail.getCustomerDetail(); DataTable dt = myCusDetail.DetailCustomer(this.txtCusID.Text); if (dt.Rows.Count > 0) { this.lblCustomerID.Text = (string)dt.Rows[0]["CustomerID"]; this.lblName.Text = (string)dt.Rows[0]["Name"]; this.lblEmail.Text = (string)dt.Rows[0]["Email"]; this.lblCountryCode.Text = (string)dt.Rows[0]["CountryCode"]; this.lblBudget.Text = (string)dt.Rows[0]["Budget"].ToString(); this.lblUsed.Text = (string)dt.Rows[0]["Used"].ToString(); }
Quote:มีเรื่องที่สงสัยมาหลายเดือนละ แต่ถามใครแล้วก็ยังไม่มีใครตอบได้ ขอถามหน่อยนะคะว่า Gridview กับการสร้าง Table แล้วยัดข้อมูลในรูปของ jsonstring เข้าไป แบบไหนมันดีกว่ากันคะ แบบที่ไม่ทำให้เวปเราช้า และเรียกข้อมูลด้เร็วกว่ากันคะ ตอนนี้ใช้มั่วไปหมดทั้ง 2 วิธีเลย
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง