Asked By Alan Silver
29-Dec-08 07:49 PM
Hello,
I know why the "A potentially dangerous Request.Form value was detected
from the client" error happens, and I know it can be avoided by setting
validateRequest to false, but is there a way of handling the error
rather than disabling it?
I have a form where I don't want people to be able to enter HTML, but I
don't want to show this ugly error if they do. I would like to be able
to catch the error and handle it myself by encoding the user's input,
rendering the HTML harmless.
Any ideas? Thanks,
Alan
--
Alan Silver
(anything added below this line is nothing to do with me)