开发者

Get the roles associated with a asp.net page

开发者 https://www.devze.com 2023-01-05 10:03 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消