How to make the smatest dynamic menu

  • Thread starter Thread starter pnr
  • Start date Start date
P

pnr

I am makeing a system where every user have there ovn menu, they can
chose between about 20 different sides they want in there menu. Eache
side contains that menu, the user logs in with username and
password.

Schall i put the list of the menu items that the user have the rights
to see in an session, schall i ask the database for the list on
everys side, or is there a better solution?

What about the menu, what is the smartest way to program it, so i only
have the code for it at one place?

Hop you have som good suggestions :D
 
You could make the menus into user controls, then you could cache them so
they don't need to bother the database often.
Here's more info:
http://msdn.microsoft.com/library/d...n/html/vbconintroductiontowebusercontrols.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboriwebusercontrols.asp
http://msdn.microsoft.com/library/d...l/vbconWebUserControlsVsCustomWebControls.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconOutputCache.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net




pnr said:
I am makeing a system where every user have there ovn menu, they can
chose between about 20 different sides they want in there menu. Eache
side contains that menu, the user logs in with username and
password.

Schall i put the list of the menu items that the user have the rights
to see in an session, schall i ask the database for the list on
everys side, or is there a better solution?

What about the menu, what is the smartest way to program it, so i only
have the code for it at one place?

Hop you have som good suggestions :D
 
Back
Top