[thelist] Determining if an ASP is really an ASP file
Ken Kogler
ken.kogler at cph.org
Fri May 31 11:21:15 CDT 2002
> I can't understand why some pages that are not obviously ASP
> still called .asp
I do that with CSS files sometimes. You might see:
<link rel="stylesheet" type="text/css" href="/default.asp">
It's still CSS< but I'm using some server-side VBScript that needs to be
parsed by asp.dll on the server before it spits out the CSS. For example,
part of default.asp could be:
-------------------------------------
<%
if currentPage = "contactUs" then
color = "blue"
else
color = "green"
end if
%>
TD.nav {
background: <%= color %>;
}
-------------------------------------
The code isn't "correct" by any means, but that should give you an example
of why someone would use an .asp extension on a non-asp page.
-Ken Kogler
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list