Generating Static HTML from ASP
Written by Eric Smith, Northstar Computer Systems LLC
In some cases, you may want to generate static HTML pages from your ASP pages. In cases where you're not frequently updating pages or only update them periodically, creating a static HTML page makes a lot of sense. To do this, you can use the FileSystemObject to open a text file (OpenTextFile method) and write out the HTML directly to the file. The key requirement is that the directory where you're writing the file be available to the web server as writeable. Normally, this is not available for security purposes. However, you could make a subdirectory of your web server writeable, and that's where you could put your file.
Keywords: [
ASP Black Belt
|
ASP Built-in Objects
]
Publication Date: 11/1/2000, Last Update: 2/24/2010
|