Saturday 30 April 2011

How To set Rules For A folder in asp.net

Create a folder in your application Named Administrator and put all the files which are related to administrator
add web.config in this folder and write in web.config
<configuration>
    <system.web>
        <authorization>
            <allow roles="Administrator" />
            <deny users="*" />
        </authorization>
    </system.web>

No comments:

Post a Comment