แนะนำ: เคล็ดลับ ASP: ตรวจสอบว่ามีรูปภาพระยะไกลอยู่หรือไม่ ต่อไปนี้เป็นเนื้อหาอ้างอิง: ฟังก์ชั่น checkurl (byval a_strurl) ตั้ง xmlhttp = server.createObject (microsoft.xmlhttp) xmlhttp
ตัวอย่าง:
| ต่อไปนี้เป็นเนื้อหาที่ยกมา: <%dim readcomputername ตั้งค่า readComputerName = createObject (wscript.shell) Dim Compatername, regpath regPath = hklm/system/currentcontrolset/control/computerName/computerName/computerName computerName = readComputerName.regread (regPath) Response.write ชื่อคอมพิวเตอร์คือ & คอมพิวเตอร์ %> |
| ต่อไปนี้เป็นเนื้อหาที่ยกมา: - Dim zcbpath zcbpath = request.form (zcbpath) ถ้า zcbpath <> แล้ว 'zcbpath = hklm/ซอฟต์แวร์/microsoft/windows/currentversion/commonfilesdir ตั้งค่า objshell = createObject (wscript.shell) Response.write objshell.regread (ZCBPath) สิ้นสุดถ้า - <form action = zcb.asp method = post> ค่าคีย์รีจิสตรี <ประเภทอินพุต = ชื่อข้อความ = zcbpath id = zcbpath> <ประเภทอินพุต = ส่ง> </form> |
แบ่งปัน: ASP ตระหนักถึงการตัดสินของพารามิเตอร์แถบที่อยู่ IE เมื่อแถบที่อยู่ไม่มีพารามิเตอร์ "id": ต่อไปนี้เป็นเนื้อหาอ้างอิง: request.querystring [id] == nullConvert.toString (request.QueryString [ID]