I want to restrict access to certain pages on my web site. They are all contained within one folder. Some of them have links to pages outside of this folder (do not know if this is a problem or not). I know how to use asp to create a sign in or register page and populate an access data base. What I do not know how to do is force login for these certain pages only.
Will give you an optimal solution for this. Just make a try like this. Have your login username and password in query string along with the current page name. Just populate these things in the next page load. In page load, check with the database whether this user had permission to access this page. If not redirect the user to the back page itself. You can achieve this in the previous page click event also. Prerequisite: You have to create table with role and accessibility of pages for that role in the database. Regards, Venkatesan Prabu. J