Knowing the user name in a Page
Posted
by ctacke
on Stack Overflow
See other posts from Stack Overflow
or by ctacke
Published on 2010-04-26T22:51:00Z
Indexed on
2010/04/26
22:53 UTC
Read the original article
Hit count: 164
ASP.NET
|authentication
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?
© Stack Overflow or respective owner