sb.Remove(0, sb.Length); sb.Append("SELECT Product_code,Product_name,Product_pricep,Product_pricem"); sb.Append("FROM Product"); sb.Append("WHERE ( Product_code =@Product_code )"); string sqlProduct = sb.ToString(); DataTable dt; com.CommandType = CommandType.Text; com.CommandText = sqlProduct; com.Parameters.Clear(); com.Parameters.Add("@Product_code", SqlDbType.NVarChar).Value =textBoxcodeproduct.Text; com.Connection = Conn; dr = com.ExecuteReader(); if (dr.HasRows) { dt = new DataTable(); dt.Load(dr); textBoxcodeproduct.Text = dt.Rows[0]["Product_code"].ToString(); label7.Text = dt.Rows[0]["Product_name"].ToString(); label8.Text = dt.Rows[0]["Product_pricep"].ToString(); label9.Text = dt.Rows[0]["Product_pricem"].ToString(); }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง