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.
I don't want to turn off ValidateRequests.Code:System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client ...
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![]()




icon on the left of the post.
Reply With Quote