ASP TextStream Object

The TextStream Object The TextStream object is used to access the contents of text files. The following code creates a text file (c:\test.txt) and then writes some text to the file (the variable f is an instance of the TextStream object): <% dim fs, f set fs=Server.CreateObject(“Scripting.FileSystemObject”) set f=fs.CreateTextFile(“c:\test.txt”,true) f.WriteLine(“Hello World!”) f.Close set f=nothing set [...]

  • Share/Bookmark

File System Object

The FileSystemObject Object The FileSystemObject object is used to access the file system on the server. This object can manipulate files, folders, and directory paths. It is also possible to retrieve file system information with this object. The following code creates a text file (c:\test.txt) and then writes some text to the file: <% dim [...]

  • Share/Bookmark

ASP Error object

The ASPError object is used to display detailed information of any error that occurs in scripts in an ASP page. The ASPError Object The ASPError object was implemented in ASP 3.0 and is available in IIS5 and later. The ASPError object is used to display detailed information of any error that occurs in scripts in [...]

  • Share/Bookmark

ASP Application Object

A group of ASP files that work together to perform some purpose is called an application. The Application object in ASP is used to tie these files together. Application Object An application on the Web may be a group of ASP files. The ASP files work together to perform some purpose. The Application object in [...]

  • Share/Bookmark

ASP Request Object

Request Object When a browser asks for a page from a server, it is called a request. The ASP Request object is used to get information from the user. Its collections, properties, and methods are described below: Collections Collection Description ClientCertificate Contains all the field values stored in the client certificate Cookies Contains all the [...]

  • Share/Bookmark

ASP Response Object

Response Object The ASP Response object is used to send output to the user from the server. Its collections, properties, and methods are described below: Collections Collection Description Cookies Sets a cookie value. If the cookie does not exist, it will be created, and take the value that is specified Properties Property Description Buffer Specifies [...]

  • Share/Bookmark

ASP Email with CDOSYS

CDOSYS is a built-in component in ASP. This component is used to send e-mails with ASP. Sending e-mail with CDOSYS CDO (Collaboration Data Objects) is a Microsoft technology that is designed to simplify the creation of messaging applications. CDOSYS is a built-in component in ASP. We will show you how to use this component to [...]

  • Share/Bookmark

ASP Global.asa

The Global.asa file is an optional file that can contain declarations of objects, variables, and methods that can be accessed by every page in an ASP application. The Global.asa file The Global.asa file is an optional file that can contain declarations of objects, variables, and methods that can be accessed by every page in an [...]

  • Share/Bookmark

ASP SSI, include

The #include directive is used to create functions, headers, footers, or elements that will be reused on multiple pages. The #include Directive You can insert the content of one ASP file into another ASP file before the server executes it, with the #include directive. The #include directive is used to create functions, headers, footers, or [...]

  • Share/Bookmark

ASP Application Object

A group of ASP files that work together to perform some purpose is called an application. The Application object in ASP is used to tie these files together. Application Object An application on the Web may be a group of ASP files. The ASP files work together to perform some purpose. The Application object in [...]

  • Share/Bookmark