I was just wondering if anyone can explain how I can make the menu's dynamic (the menu's change depending on who logs in). The menu data could come from either a database, or be determined by code....
Also, I love what FedEx (http://www.fedex.com/us/) did on their menus. Some menu options show a little 'locked' icon until the user logs in. How can this be done ?
I'm using ASP.NET
Thanks - Jim
Rochester NY
How to make Dynamic Menus ??
Hi,
There are several ways you can achieve dynamic menus.
If you want to use ASP and a database, there is some code at http://support.milonic.com/datamenu/asp ... amenus.zip
Alternatively, you could do something like this inside your style definition:
if(loggedin)image="/padlock.gif";
Or you could rename the .js file as .asp and you could add your own code to declare an image based on your own conditions. There are just too many techniques for this to describe them all but it really depends on what you have.
-- Andy
There are several ways you can achieve dynamic menus.
If you want to use ASP and a database, there is some code at http://support.milonic.com/datamenu/asp ... amenus.zip
Alternatively, you could do something like this inside your style definition:
if(loggedin)image="/padlock.gif";
Or you could rename the .js file as .asp and you could add your own code to declare an image based on your own conditions. There are just too many techniques for this to describe them all but it really depends on what you have.
-- Andy