B
bryanp10
This is driving me crazy. How do I redirect a failed AUTHORIZATION to
a custom page in ASP.NET 2.0?
All failed authorizations are going to my loginUrl, which is next to
useless. I want an error page that says WHY a user can't access a URL.
This seems like it should have been an obvious feature for 2.0...
alas, it appears even harder now!
I have tried looking at the Response.StatusCode in
Application_EndRequest (or Global_EndRequest), which is a solution
posted in other threads on this topic. But it does NOT work in ASP.NET
2.0. The StatusCode is always 302 for failed auth.
a custom page in ASP.NET 2.0?
All failed authorizations are going to my loginUrl, which is next to
useless. I want an error page that says WHY a user can't access a URL.
This seems like it should have been an obvious feature for 2.0...
alas, it appears even harder now!
I have tried looking at the Response.StatusCode in
Application_EndRequest (or Global_EndRequest), which is a solution
posted in other threads on this topic. But it does NOT work in ASP.NET
2.0. The StatusCode is always 302 for failed auth.