is there an authorizeattribute equivalent to just standard web forms (not MVC) for .net

前端 未结 2 1651
故里飘歌
故里飘歌 2020-12-04 01:30

I\'m working on a project that will use windows role providers and I want to limit functionality to certain AD groups.

With MVC, I could use an AuthorizeAttrib

2条回答
  •  孤街浪徒
    2020-12-04 02:17

    You can set this up in web.config with the authorization element.

    
      
        
          
          
        
      
    
    

    Basically domain groups are translated into roles when using . You can read more about it on MSDN

提交回复
热议问题