Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbee-The standard to tell a web users they cannot access a page?

Status
Not open for further replies.

Gzk2010

Programmer
Aug 17, 2010
48
US
Newbee here,

I made a folder SecureFTP

Then made a page FTP.aspx

Using the built in WAT tool using vs2010
when a user is denied access it redirects to the login page which is wonky,
Should I just create some kind of script that checks what user is in what roles and take menu hyperlinks away that they cannot access, OR should I just throw up an acces denied page. Is there a solution built into the WAT?



 
Here is my web.config for the SecureFtp directory if it helps

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<authorization>
<allow roles="FtpUploaders" />
<allow roles="WebMasters" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top