views:

130

answers:

3

I have the following authorization rules in my web.config:

<location path="Register.aspx">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
    <location path="ForgotCredentials.aspx">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>

Except for the path attribute these two rules are the same. Is there a way to combine these two rules into one like path = Register.aspx, ForgotCredentials.aspx.

A: 

As far as I know, there is no way. You have to specify multiple location elements unfortunately.

womp
A: 

The only way would be to place them in a common folder which held the rules for all sub-files.

Joel Etherton
+1  A: 

No, you can't. That path property just accepts one file/directory at time.

Also consider this documents:

Rubens Farias
+1 for good references
Joel Etherton