This blogs shows how to make a page(s) secured from users who're not logged in from your website. This applies to either C# or VB.
1. Create a new folder named "pages" (or any name you desire). On this folder you will save the secured webpages.
2. Right click on the folder, click Add New Item, then choose Web Configuration File. Click Add to create the file.
3. Add the following code to your web config file:
4. Your pages inside this folder now should not be viewed by users not logged in.
No comments:
Post a Comment