I have an ASP.NET Website, in this I want to restrict the
Admin Folder to only users who are of 'Admin Role' in the SQL Server Table
(tbl_Users_Admin having columns as UID, PWD, Name, Role, Status). Rest of all
the root pages I want to be publicly accessed by any user.
I will not be using ASP.NET Membership.
I have two Login.aspx pages in the root as well as in the Admin
Folder.
I tried to resolve it through the Forms Authentication, but
I am unable to resolve it.
Few forums suggested to create two different Web.Config
files (one for root folder of website and another for Admin Folder), but it
seemed to be an inefficient way to me.
I have not been successful to resolve it. Please help me in this regards.
Although I have tried to do this using the <location
path="Admin"> as follows in the web.config file at root:-
<location
path="Admin" ...
Go to the complete details ...