I have a very basic site with 3 pages (Login, Query and Add). I have set up my web.config file to allow 4 users access to the site, and 2 of those users are allowed on the Add page.
My question is, is there a way to hide the "Add" page link on Query.aspx from the users that are not allowed to access that page?
Here's the site structure...
Login.aspx - is a login form. I used Forms Authentication with Active Directory, and in web.config I provided a list of users that are able to log in to the site. There are 4 allowed users: jdoe, asmith, mbrown, and bjones. After login the users are redirected to Query.aspx.
Query.aspx - a page that searches a database. All 4 allowed users can access this page. This page has a link to Add.aspx. I want to hide this link from mbrown and bjones.
Add.aspx - adds a record to the database. Only 2 of the allowed users (only jdoe and asmith) are be allowed to access this page.
Part of web.config (some stuff omitted to save space):
name = ".ASPXFORMSAUTH"