Forums

ASP

This topic is locked

controlling Include files

Posted 11 Apr 2007 17:11:03
1
has voted
11 Apr 2007 17:11:03 Ryan Preece posted:
Hi all, long time no text, how are we all?

You can call me stupid here but I'm in a place I've not been before.

I'm building a site where I want users to be able to customize the look and feel.
Now, one of these options is to allow a user to chose different menu systems for they're page.

I've made a handfull of gui table based menus with nice artworks etc. at the moment I'm pulling
them into the page via the include method whic is fine. What I would like to do is give them the ability to choose
a menu style from a list and then store a new include file into a database. Then when the page loads the include file
would contain the correct path to the menu.

I've also tried to change the path in the code i.e. <!--#include virtual="putting asp here"-->.

This is the first time I've used include files and feel like I've missed out a big part here - to be honest
I'm baffled as to why I can't seem to get this to work. I've tried al sorts but I'm obviousley in the dark here

any light would be appreciated! cheers all and thank's for reading

Replies

Replied 13 Apr 2007 14:32:36
13 Apr 2007 14:32:36 Ryan Preece replied:
I'm sorted! I managed to figure it out with the help of a friend.

It seems include files don't function this way and I ended up using a Macro

Sweeeeet!

works a treat now via if else commands, althouhg if anyone can tell me how I make this
<% call menu1() %> work with a database it would be much appreciated

I don't really want to ring up loads of if else commands and would like to expand on the whole code eventually

Reply to this topic