Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET 2.0 - Menu control and dynamic SiteMap

Status
Not open for further replies.

jkb17

Programmer
Nov 27, 2000
156
US
Hello,

I want to create 2 XML based web.sitemap items to populate a single menu on a single master page. There are two types of userse: Admins and End Users.

I'm hoping that based on security I can toggle between the two.

Outside of using a database, can this be done via VB.NET code within a preload event?

Thanks in advance

Jim
 
I don't think .NET 2.0 will allow you to have more than one web.sitemap file, but it sounds like you need to use roles.

Implement a role provider, then assign your users roles. Then assign your single web.sitemap items with role attributes to restrict what roles can see which menu items.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top