Knowing the user name in a Page
- by ctacke
Let's assume the following:
I have an IIS web site set up
IIS is configured to use Digest authentication
I'm running an ASP.NET page
The page has a code-behing assembly that overrides Page_Load
When a user navigates to that page, I get a security prompt for the username and password. If the username and password are invalid (i.e. incorrect password) is there a way for the called page, in Page_Load to know, or does IIS handle this and return the 401 before the ASP.NET engine ever gets around to resolving the actual Page class that will get executed?