asp vs jsp or maybe shtml?

ok, I'm looking to be able to add my .nav header in all my htm/pages with a few lines of code, so i can edited it from one place... my server doesn't allow me to use the asp header, but i can use .asp files??(and i dont want to change) can I still use asp code? without the header? or would .jsp file be a better way to go? or could shtml be as good?


Also, I would like to know the pros and cons of each..and which is best.
LVL 2
CaiapfasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

COBOLdinosaurCommented:
My prefrence for this sort of thing is to use Server Side Includes because maintaining them is just about as much of a no-brainer as you can find.

Cd&
0
pepsichrisCommented:
Yeah, and Shtml files should be faster in theory as they only have one specific thing to look for and do.

Syntax for ASP & SSI is exactly the same.

<!--#include file="thing.inc"-->
or
<!--#include virtual="otherthing.inc"-->


If you were considering having some Server Side activity going on in future then it'd be a better bet to make 'em all ASP now thuogh, imho.

Out of interest, why are they all ASP now if they aren't doing any ASPing?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dorwardCommented:
You should also consider an HTML Preprocessor which requires no server resources at all.
http://www.allmyfaqs.com/faq.pl?Include_one_file_in_another
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

Rodjel_Ronel_CuebillasCommented:
use include file
 
0
CaiapfasAuthor Commented:
ok,

I'm using ssi, but i'm having a issue. when i try to go back a few directories i get [an error occurred while processing this directive]

example of what i'm doing <!--#include file="../menus/cds.htm"-->
how do I go back a directory or 2? using absolute paths doesnt work either.

>>>>> Syntax for ASP & SSI is exactly the same. <<< is all syntax the same?
0
fozyletCommented:
You can use virtual= instead of file=

<!--#include file="/html/menus/cds.htm"-->

where /html/menus/cds.htm is the full virtual path to the include file
0
fozyletCommented:
oops!

<!--#include virtual="/html/menus/cds.htm"-->
0
CaiapfasAuthor Commented:
can you point me torwards a go SSI tutorial?
0
COBOLdinosaurCommented:
0
COBOLdinosaurCommented:
Glad we could help.  Thanks for the A. :^)

Cd&
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.