How to make a Public Page in ASP.NET? web.config?

  • Thread starter Thread starter Dexter
  • Start date Start date
D

Dexter

Hello all,
I have a web application with the authentication mode = "Forms", this
function very well, but i have a directory in this webpplication that it has
only a page.aspx file, and i need that this form has that to be public, the
user don't need to do login to have access in this file.

Somebody to know with to make this?

Thanks


Dexter
 
It's a little more than just this but you can create a new web.config under
that page's folder and add the following:

<authorization>
<allow users="*" /> <!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/> -->
</authorization>
 
Back
Top