3 Replies - 2368 Views - Last Post: 13 December 2001 - 08:09 AM Rate Topic: -----

#1 klewlis  Icon User is offline

  • cur tu me vexas?

Reputation: 8
  • View blog
  • Posts: 1,723
  • Joined: 09-November 01

ASP and dynamic includes

Posted 07 December 2001 - 09:03 AM

I want to includes files into a page depending on an include variable. I could use a case statement to decide which include file to use, but that requires a manual adjustment every time a new option is added. I'd rather create the include statement dynamically, but it doesn't seem to want to let me do that (when I print the include statement it simply prints it into the source and doesn't execute it). Does anyone know a solution to this?
Is This A Good Question/Topic? 0
  • +

Replies To: ASP and dynamic includes

#2 Quentin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 26-November 01

Re: ASP and dynamic includes

Posted 12 December 2001 - 02:44 AM

you can't do a dynamic include with asp, since the server first checks the includes, and after that compiles the source...

this is the same problem i had with my skin-system, so i got this solution:

<%
Select Case Session("skinname")
     Case "simplestyle"
     %> won't work :(


regards

Was This Post Helpful? 0
  • +
  • -

#3 klewlis  Icon User is offline

  • cur tu me vexas?

Reputation: 8
  • View blog
  • Posts: 1,723
  • Joined: 09-November 01

Re: ASP and dynamic includes

Posted 12 December 2001 - 06:55 AM

Yeah, I've pretty much given up trying... it's a shame, as that would be SO helpful...


Was This Post Helpful? 0
  • +
  • -

#4 Quentin  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 26-November 01

Re: ASP and dynamic includes

Posted 13 December 2001 - 08:09 AM

sorry
ikonboard wanted to include my html code...

post messed up :(

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1