Using the customErrors tag in web.config I setup a default error page (Error.aspx) to redirect users to when they get the Request Validation error by typing <script>, etc.

Redirection works.

However, If I try to do anything with the error in Error.apsx it goes into a loop. I get this problem even if I do something like the following in the load event handler:

Dim x as String = Server.GetLastError.Message

I tried turning off RequestValidation in the error page. Still get the same problem.


Help!

Jay