G
Guest
When a user enters a html tag <BR> in one of my textboxes, asp.net by default
gives the error:
"A potentially dangerous Request.Form value was detected from the client
....".
I understand that I can turn this error off by setting validateRequest=false
in the Page directive. However, I want to turn this property on and catch the
error using try and catch, but that didn't work. Is there a way to catch it
so that I can show the error in a more user friendly way. Thanks.
gives the error:
"A potentially dangerous Request.Form value was detected from the client
....".
I understand that I can turn this error off by setting validateRequest=false
in the Page directive. However, I want to turn this property on and catch the
error using try and catch, but that didn't work. Is there a way to catch it
so that I can show the error in a more user friendly way. Thanks.