ASP Includes

J

Jeff

When writing ASP pages that have include pages, is best to make the include
pages as txt, asp, inc??? which format would be the most efficient.

the include pages wouldn't contain any asp script, all html.
thanks
jeff
 
T

Tim Slattery

Jeff said:
When writing ASP pages that have include pages, is best to make the include
pages as txt, asp, inc??? which format would be the most efficient.

You mean what extension should you use? There's certainly no
difference in efficiency. "inc" makes it clear to the maintainer (you)
that this file is intended to be included. "html" would make it clear
that the file contains HTML.

Pick whatever helps you to remember how your site works.
 
B

Bob Barrows [MVP]

Jeff said:
When writing ASP pages that have include pages, is best to make the
include pages as txt, asp, inc??? which format would be the most
efficient.

the include pages wouldn't contain any asp script, all html.
thanks
jeff
No efficiency gains, but unless you go into your website configuration and
change the mappings, a person will be able to download that inc or txt file
by browsing to it. Using a .asp extension will prevent it from being
downloaded
 
J

Jeff

Ok. up to this point, i have been using .asp i just got to thinking today,
as someone asked me about making an include page that contained the DB
connection.

thanks for the replies.
Jeff
 
P

Paxton

Jeff said:
Ok. up to this point, i have been using .asp i just got to thinking today,
as someone asked me about making an include page that contained the DB
connection.

thanks for the replies.
Jeff

I ALWAYS put db connection includes in an .asp file. I might be able
to persuade the current hosting company that I use to change mappings
for inc files, but I can't be guranteed that the next hosting company
will comply if I ever have to move hosts.

/P.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top