if/then/else ssi's syntax

Results 1 to 2 of 2

Thread: if/then/else ssi's syntax

  1. #1
    Join Date
    Dec 1969

    Default if/then/else ssi's syntax

    I am not sure how to include different files using if/then/else statements (it depends on a cookie). How would I do something like the following:<BR><BR><BR>&#060;%<BR><BR>if request.cookies("IGUser")("Nav")="Main" then<BR> response.write "&#060;!-- #Include virtual=""../main.inc"" --&#062;"<BR> elseif request.cookies("IGUser")("Nav")="George" then<BR> response.write "&#060;!-- #Include virtual=""../George.inc"" --&#062;"<BR> else<BR> response.write "&#060;!-- #Include virtual=""../Default.inc"" --&#062;" <BR>End If<BR><BR>any ideas? I can keep the includes inside a database, but that would be a pain..

  2. #2
    Join Date
    Dec 1969

    Default RE: if/then/else ssi's syntax

    You can&#039t dynamically include files like that; all SSI directives are processed before ASP. I thought I remembered an article on 4guys on how to fake a dynamic SSI, but I&#039m not sure.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts