I am using ASP .Net (C#) login control Form Based authentication for users and administrator,
I have folder Secure and Public, after passing authentication, administrator can access
secure and public both folder, but when user login he should have access to only public folder
not secure, so if user click on any link from website which has URL to secure folder instead
of login page how to redirect user to page which display unauthoised access message.
When logged in as administrator I can debug (in secure folder) page load event, but when logged
in as user i can not even reach to debug (in secure folder).
I am still in Dev. Environment.
Web.Config file :
<authentication>
<forms loginUrl="MainLogin.aspx" defaultUrl="Default.aspx" />
</authentication>
Web.Config file in Secure Folder:
<?xml version=&qu ...
Go to the complete details ...