Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
help with #INCLUDE FILE
Old 01-27-2005, 07:53 AM help with #INCLUDE FILE
Average Talker

Posts: 19
Trades: 0
Hi. Still trying to teach myself ASP. In my book they use #INCLUDE FILE to use standardheader.asp to display the same web banner on the each page of the site. The standardheader.asp (below) I understand.

<html><head><title>Standard Header</title></head>
<body><img src="header.jpg"></body>

The book also gives the following code for including the header.

<!-- #INCLUDE FILE="standardheader.asp" --!>

It does not however, tell you where to put the above code. I am also not sure to save the file as a .htm or .asp.

Thanks for the help.
dangerousdee181 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-27-2005, 09:26 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Save it as ASP and put the INCLUDE code any where you want the contents of standardheader.asp to apear on your page.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 01-27-2005, 09:34 AM
Average Talker

Posts: 19
Trades: 0
perfect!!!

thank you
dangerousdee181 is offline
Reply With Quote
View Public Profile
 
Old 01-27-2005, 12:39 PM
Average Talker

Posts: 19
Trades: 0
Now that it is working, another question.

If I am using the asp page as a template so each page on my site has the banner, does that mean that all of my files will be .asp and not .htm? If yes, that would be bad if I were using an older, slower web server as my host. Is there a better way to do this?
dangerousdee181 is offline
Reply With Quote
View Public Profile
 
Old 01-27-2005, 12:47 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
If your not using any ASP code in your pages and are only using the include code. Then all your pages can use the .shtml extention.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 02-10-2005, 11:05 AM
Average Talker

Posts: 19
Trades: 0
What is the difference between html and shtml?
dangerousdee181 is offline
Reply With Quote
View Public Profile
 
Old 02-10-2005, 11:32 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
shtml contains server side code and is actually a little outdated.

As good practise, I'd say:
For any files with just HTML (no server side language such as ASP) use .htm
For files with any ASP code in them at all, use .asp

If you stick to that rule, it's easier not to get confusded.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to help with #INCLUDE FILE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24719 seconds with 12 queries