Is your menu details in SiteMap file or in XML File?
Create a sitemap file and store your menu structure in sitemap file. And
then rest of work related to showing only those menus which are allowed to
that particular user will be done by asp.net.
See this article how it will work and how SecurityTrimmin g will work.
Thankfully, ASP.NET 2.0's site navigation provides a feature called security
trimming. When obtaining site map information with security trimming
enabled, only those site map nodes that the currently logged on user has
authorization to visit are available. That means the site's TreeView or Menu
will contain just those sections accessible by the currently logged in user.
Read on to learn how to configure site navigation to support security
trimming!
http://aspnet.4guysfromrolla.com/articles/122805-1.aspx
Shahzad Godil
Karachi-Pakistan.
"S P" <SP@discussions .microsoft.comw rote in message
news:30******** *************** ***********@mic rosoft.com...
Hi All,
I am developing an ASP.NET 2.0 application.
I want to show the menu, depending on the user role.
How can I implement that?
Currently I store all the menu details in XML file and using DataList to
render link buttons in Tabular format.
Any pointer?
TIA
Sachin