The infamous A potentially dangerous Request.Form value was detected from the client
question :)
Here's my use case: I have a FCKEditor control on a webpage, that allows users to type HTML. That precise webpage has validation turned off to allow its use, but my masterpage has linkbuttons that can raise postbacks on other pages.
I obviously don't want to turn validation off needlessly on every page of my site, but I'd want to be able to sanitize the input 'silently' (either by removing the faulty field from the request form, or by validating it).
I see that one can override OnInit or ProcessRequest on the page, but I'd like to do that on the master page if it is possible. (I'm not even sure I can recover from a HttpRequestValidationException
)
Any idea on how I could do that?
Edit: I've been playing with Page_Error, which successfully catches the error but I can't find how to resume processing after I checked the request was in fact legit.