void btnSave_Click(Object sender, EventArgs e) { strSQL = "UPDATE customer SET " + " CustomerID = '"+ this.txtCustomerID.Text +"' " + " ,Name = '"+ this.txtName.Text +"' " + " ,Email = '"+ this.txtEmail.Text +"' " + " ,CountryCode = '"+ this.txtCountryCode.Text +"' " + " ,Budget = '"+ this.txtBudget.Text +"' " + " ,Used = '"+ this.txtUsed.Text +"' " + " WHERE CustomerID = '" + Request.QueryString["CustomerID"] + "' "; objCmd = new SqlCommand(); objCmd.Connection = objConn; objCmd.CommandText = strSQL; objCmd .CommandType = CommandType.Text; this.pnlAdd.Visible = false; try { objCmd.ExecuteNonQuery(); this.lblStatus.Text = "Record Updated"; this.lblStatus.Visible = true; } catch (Exception ex) { this.lblStatus.Text = "Record can not update"; } }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง