Get the roles associated with a asp.net page
I'm developing a web site and on the web.sitemap i define which roles can access a certain page, is it possible t开发者_StackOverflow中文版o know on the page which are the role associated to then on the web.sitemap
You can use the Roles property of the SiteMapNode. Probably something like:
SiteMap.CurrentNode.Roles
精彩评论