| QueryString | จะคืนค่าทั้งหมด ของข้อมูลที่ส่งมาแบบ GET ที่อยู่หลังเครื่องหมาย Question Mark |
|---|---|
| QueryString ( key ) | จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ GET |
| QueryString ( key ) (index ) | จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ GET โดยตัวแปรนั้นมีหลายตัว ( จึงต้องใช้ดัชนีเป็นตัวชี้ ) |
| QueryString ( key ).Count | ใช้นับจำนวน ของชื่อตัวแปรที่ส่งมา แบบ GET ว่ามีซ้ำกันกี่ตัว |
| Form | จะคืนค่าทั้งหมด ของข้อมูลที่ส่งมา แบบ POST ( ได้ผลลัพธ์เหมือนกับ QueryString ของ GET ) |
| Form ( key ) | จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ POST |
| Form ( key ) ( index ) | จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ POST โดยตัวแปรนั้นมีหลายตัว ( จึงต้องใช้ดัชนีเป็นตัวชี้ ) |
| Form ( key ).Count | ใช้นับจำนวน ของชื่อตัวแปรที่ส่งมา แบบ POST ว่ามีซ้ำกันกี่ตัว |
property:QueryString;
return type:String
content:จะคืนค่าทั้งหมด ของข้อมูลที่ส่งมาแบบ GET ที่อยู่หลังเครื่องหมาย Question Mark ผลลัพธ์ที่ได้เช่น username=smithcross&password=2345&email=nutrudbac@hotmail
example:Dim query_string = Request.QueryString;
method:QueryString ( object_string_key )
return type:String
content:จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ GET
example:Dim username = Request.QueryString ( “username” )
method:QueryString ( object_string_key ) (int_index )
return type:String
content:จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ GET โดยตัวแปรนั้นมีหลายตัว ( จึงต้องใช้ดัชนีเป็นตัวชี้ )
example:Dim options_1 = Request.QueryString ( “option” ) ( 1 ) Dim options_2 = Request.QueryString ( “option” ) ( 2 )
property:QueryString ( key ).Count
return type:int
content:จะคืนค่าจำนวน ของชื่อตัวแปรที่ส่งมา แบบ GET ว่ามีซ้ำกันกี่ตัว
example:Dim num_option = Request.QueryString ( “options” ).Count
property:Form
return type:String
content:จะคืนค่าทั้งหมด ของข้อมูลที่ส่งมา แบบ POST ( ได้ผลลัพธ์เหมือนกับ QueryString ของ GET )
example:Dim query_string_post = Request.Form
method:Form ( key )
return type:String
content:จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ POST
example:Dim username = Request.Form ( “username” )
method:Form ( key ) ( index )
return type:String
content:จะคืนค่าข้อมูล ของชื่อตัวแปรที่ส่งมา แบบ POST โดยตัวแปรนั้นมีหลายตัว ( จึงต้องใช้ดัชนีเป็นตัวชี้ )
example:Dim option_1 = Request.Form ( “options” ) ( 1 ) Dim option_2 = Request.Form ( “ options” ) ( 2 )
method:Form ( key ).Count
return type:String
content:ใช้นับจำนวน ของชื่อตัวแปรที่ส่งมา แบบ POST ว่ามีซ้ำกันกี่ตัว
example:Dim num_option = Request.Form ( “options” ).Count