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

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

<configuration>
  <system.web>
    <authorization>
      <allow roles="domainname\Managers" />
      <deny users="*" />
    </authorization>
  </system.web>
</configuration>

Basically domain groups are translated into roles when using <authentication mode="Windows" />.
You can read more about it on MSDN

Leave a Comment