Hi,

I have some textboxes on my aspx page. If the user puts "<" or ">" character by mistake in those boxes, it shows the System.Web.HttpRequestValidationException error.
Code:
System.Web.HttpRequestValidationException: 
A potentially dangerous Request.Form value was detected from the client 
...
I don't want to turn off ValidateRequests.
So I tried catching it in the Page_Error event, but that event is never fires on this exception.
I also tried overriding the OnError, but without success.

How can I catch this exception and show the user a friendly message?

Pradeep