开发者

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
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜