I am in a very difficult situation.
I have a page that is part of my project, and I want to access it without signing in or doing nothing.
Explanation: I have a test project that has a login page, a default page, an admin folder, a guest folder, and a showmessage page.
Admin folder contains pages that are accessible only to administrators
The guest folder has pages that are accessible to all users.
now when I type http: //localhost/Default.aspx or any other page, it first brings me to the login page and only after I enter the login credentials, I go to the default page and from there to other pages.
this system works fine for me and I donβt want to change it,
but this page looks like a page called showmessage.aspx.
what I want, when I type http: //localhost/showmessage.aspx , it should ignore all the login pages and take me directly to this page .. is there any way to do this.
I have this in my webconfig:
<authentication mode="Forms"> <forms loginUrl="Login.aspx" defaultUrl="~/Default.aspx" name="GUI" slidingExpiration="true" timeout="30" path="/"> </forms> </authentication> <location path="Admin" allowOverride="true"> <system.web> <authorization> <allow roles="Administrators" /> <deny users="*" /> </authorization> </system.web> </location>
Please help me. Appreciate all the help I can get. thanks