ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

 Top ASP 101 Stories Top ASP 101 Stories
Getting Scripts to Run on a Schedule
The Top 10 ASP Links @
What is and Why Do I Need It?

Find The Properties of an ADO Connection
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates

Quick Tips

Scriptless ASP Pages

Whenever you're adding a new page to your web site, you have a decision to make. Should it be a plain HTML page or should it be an ASP script? Even if the page doesn't do any processing, can you guarantee it'll stay that way? The last thing you want to do is start renaming files and causing your users' bookmarks to become invalid. So what should you do...

Make everything an ASP file even if it contains no ASP! In times gone by this was a very bad idea. IIS 4 and earlier processed every file with an ASP extension regardless of whether or not it contained script. So making every file an ASP file resulted in a large amount of unnecessary processing and worse yet caused pages to take longer to serve.

Fortunately, Microsoft has fixed this in IIS 5. When IIS 5 opens an ASP page, before it starts the actual processing, it does a very quick check to ensure the file actually contains script. If it doesn't it simply sends it on it's merry way to the client. As a result, on IIS 5 and later, there's really no reason why you can't make every page an ASP page. Just leave the ASP out of the file!

Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to:

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers