Quote:กดจองให้ย้ายไปตารางใหม่
1.
INSERT
INTO
table
2.
(column1, column2, ... )
3.
VALUES
4.
(
DEFAULT
|
NULL
| expression1,
5.
| expression2,
6.
...
7.
);
SELECT
*
FROM
table_name
foreach
(GridViewRow row
in
GridView1.Rows){
//if using TemplateField columns then you may need to use FindControl method
TextBox tb = (TextBox)row.FindControl(
"YourTextBoxID"
string
someVariableName = tb.Text
// get the value from TextBox
//Otherwise if you are just using BoundField columns then you get the data directly like this
someVariableName = row.Cells[0].Text;
//Where Cells is the column. Just changed the index of cells
8.
}
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง