|
| ||||||||||
| Tags: active server pages, asp, asp objects, asperror object, filesystemobject |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| What is the FileSystemObject and ASPError Object of ASP
|
|
#2
| |||
| |||
| ASPError Object
For an ASP web page we can use the ASPError Object to get the detail description of the error that took place. It will put forward the scripting errors. This object of ASP was introduced in ASP 3.0. When the Server.GetLastError gets called then the ASPError object gets created. And hence the Server.GetLastError method is used to get the information on the error. |
|
#3
| ||||
| ||||
| ASP Object: FileSystemObject
To access the file system which resides on a server the FileSystemObject object is used. To act upon the folder, directories paths and files the FileSystemObject is useful. Using this ASP Object we can gather file system information. Even I was confused when I started to learn the FileSystemObject in ASP. |
|
#4
| ||||
| ||||
| Creating an ASP text file
Here is an example of how to create a Text file in Active Server Pages and then write some text to it. The file is stored at D:\temp.txt: Code: <%
dim files,filen
set files=Server.CreateObject("Scripting.FileSystemObject")
set filen=files.CreateTextFile("D:\temp.txt",true)
filen.WriteLine("New Entry")
filen.Close
set filen=nothing
set files=nothing
%> |
|
#5
| ||||
| ||||
| Properties of ASPError Object
Following are the properties of the ASPError object:
|
|
#6
| ||||
| ||||
| FileSystem object methods
Here are a few methods of the ASP FileSystem object:
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "What is the FileSystemObject and ASPError Object of ASP" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ActiveX Component Can't Create Object Scripting.FileSystemObject | Robla68 | Windows Server Help | 3 | 19-10-2011 10:30 PM |
| Getting HP AIO Device object server register class object failed message on my system | Donoho | Hardware Peripherals | 6 | 06-06-2011 01:34 AM |
| Scope of Object or variable in Object oriented Programming Languages | Dėfrim | Software Development | 3 | 08-01-2011 05:20 AM |
| Explain the Global.asa file and ASPError Object in ASP | Juan-Carlos | Software Development | 5 | 22-12-2009 05:12 AM |
| ActiveX component can't create object: 'Scripting.FileSystemObject' | Fred Jacobowitz | Windows Server Help | 9 | 16-11-2005 08:02 AM |