Conditional Server-Side Includes
Written by Eric Smith, Northstar Computer Systems LLC
A user asked recently if it was possible to do conditional includes based on the values in his ASP code. The problem is that server-side includes are evaluated before the ASP code is run. This means that by the time you have values in ASP, you can't execute an include statement. The best thing I can suggest is to have a subroutine that does different things based on the value in question. Every page would simply include the routine, and it would do the correct thing, based on input.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 2/10/2001
|