asp vs htm

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any reason why I should not name all the pages in my website as
..asp? Even if they do not have asp code in them? It would be more consistent.
Is there any drawback from naming all .asp?
Thanks,
EdH
 
Other than the fact that by so naming them, you trigger a server-parse event
on each page, no. I often do this on sites where I will be using includes.
 
I'm not sure I would have put it that way, Murray. Ed probably doesn't
understand what a "server-parse event" is, and might get the idea that this
is a harmless thing to do. In fact, it WILL slow down performance on the
server, anywhere from an infintessimally small amount to an unacceptably
large amount.

I am reminded of an old saying: "Watch your pennies, and the dollars will
take care of themselves." In this case, the guy is asking the equivalent of
"Should I throw away all the pennies I get in change every day?" The answer
depends on how many pennies you receive every day, and how rich you are, as
the number of pennies lost is a fraction of your total wealth.

So, I would answer "No, unless you have a good reason to."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Of course you are right. Perhaps I should have said for sites that are less
than about 100 pages, and on which the representative page contains no more
than about 20-30K of code (I'm guessing this is well above the median for
sites built by those using FP), this will make very little difference to the
server.

If you fall outside of those limits, please contack Kevin Spencer offline
and ask for permission.

By the way, Kevin - you are takempis, right? Back in 1998, when I first
started serious web development, you rescued me with your tutorials more
than once. I've wanted to thank you ever since....
 
Thanks you for your responses. It was exactly what I needed to know. I
figured asp's carried some baggage.

I am all for getting into the habit of saving pennies even when developing a
small site so as to be well prepared when I develop the BIG one...:)

Thanks
EdH
 
The "baggage" is very minimal with ASP 3.0 and by allowing users to switch between .asp and .htm
page, you loose/suspend ASP session states. It really is best to make all pages .asp when using ASP,
unless you confine your ASP application to a subweb/subsite, but note that the session will start
when the user enters the subweb and suspend when they leave the subweb and by default will expire if
they do not return within 20 minutes.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
By the way, Kevin - you are takempis, right? Back in 1998, when I first
started serious web development, you rescued me with your tutorials more
than once. I've wanted to thank you ever since....

Well, that is my web site. Thank YOU, Murray! :-D
If you fall outside of those limits, please contack Kevin Spencer offline
and ask for permission.

I know you're kidding, but please don't suggest that ANYONE but yourself and
the other good helpers ever contact me offline!

--

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Oops! 8(

Sorry - my tongue was firmly in my cheek....

DO NOT CONTACT NOT NOBODY OFFLINE!
 
Back
Top