เมื่อเราใช้ ASP.NET Image / ImageButton control
ที่ไม่ได้ระบุ ImageUrl
โดยปกติเมื่อเราลาก ImageButton / Image control
จาก toolbox เข้ามาในหน้าเพจ
<input type="image" name="ImageButton1" id="ImageButton1" src="" mce_src="" style="border-width:0px;" />
ก็จะทำให้เกิด HTML
ด้านล่างนี้ ซึ่งจะแสดงผลก็ต่อเมื่อเราดูแหล่งที่มา (source) ในการสร้างหน้าเพจใน browser
<input type="image" name="ImageButton1" id="ImageButton1" src="" mce_src="" style="border-width:0px;" />
โดยให้สังเกตุว่า 'src'
จะถูกกำหนดให้เป็น "" ซึ่งจะทำให้เกิด
GET request กลับไปยัง server
และ server
ก็จะตอบกลับด้วยการส่งข้อมูลไปยังไซค์ที่ระบุไว้
Supa Sethasiripong [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.