Forum Moderators: open

Message Too Old, No Replies

SSIs, SHTML - can they be dynamic?

Complete beginner confused about asp

         

fishfinger

11:51 am on Apr 17, 2007 (gmt 0)

10+ Year Member



Apologies if this is a stupid question, I normaly work with PHP sites but I'm working on an shtml site on a Windows hosting environment.

I found out about asp includes in shtml files (which is an advantage over php) so I am using asp includes for menus and other 'template' content.

As long as the includes are static it works fine.

However if I try to make them *dynamic* (i.e. they include asp code) then it doesn't work - instead the code is echoed out to the shtml page.

Is it actually possible to have 'dynamic' content in an asp include inside an shtml file? Or does the top level file have to be asp?

What I want is a function that
(a) detects the page , then
(b) hide the <a href> tag for the link for that page
so you have a visual indicator in the menu as to which page you're on.

Corey Bryant

11:59 am on Apr 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The page itself would need to be ASP so that it would be parsed as ASP. The included pages themselves could be any file extension, but it is the 'final' page that determines how the page is parsed

-Corey

fishfinger

3:09 pm on Apr 17, 2007 (gmt 0)

10+ Year Member



Thanks Corey, answers my question perfectly.