วัตถุเซิร์ฟเวอร์ ASP
ออบเจ็กต์เซิร์ฟเวอร์ใช้เพื่อเข้าถึงคุณสมบัติและเมธอดบนเซิร์ฟเวอร์
ตัวอย่างเพิ่มเติม
ตรวจสอบว่าไฟล์ถูกแก้ไขครั้งล่าสุดเมื่อใด
เปิด "Textfile.txt" เพื่ออ่าน
วัตถุเซิร์ฟเวอร์
ออบเจ็กต์ ASP Server ใช้เพื่อเข้าถึงคุณสมบัติและวิธีการบนเซิร์ฟเวอร์ คุณสมบัติและวิธีการของมันอธิบายไว้ด้านล่าง:
คุณสมบัติ
Property | Description |
---|---|
ScriptTimeout | Sets or returns the maximum number of seconds a script can run before it is terminated |
วิธีการ
Method | Description |
---|---|
CreateObject | Creates an instance of an object |
Execute | Executes an ASP file from inside another ASP file |
GetLastError() | Returns an ASPError object that describes the error condition that occurred |
HTMLEncode | Applies HTML encoding to a specified string |
MapPath | Maps a specified path to a physical path |
Transfer | Sends (transfers) all the information created in one ASP file to a second ASP file |
URLEncode | Applies URL encoding rules to a specified string |