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

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
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 @ Microsoft.com
What is Adovbs.inc and Why Do I Need It?

QUICK TIP:
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: webmaster@asp101.com.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

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