A potentially dangerous Request.Form value was detected from the client
Whenever the character < is entered into any field I get an error saying... A potentially dangerous Request.Form value was detected from the client. I realize that the .NET framework is throwing the error because it can be interpreted as html code that could potentially be harmful. With one of the fields in particular, values get copied and paste into it sometimes with characters that set off this error. Setting validateRequest="false" will fix this problem but it goes against our company standards so I would prefer this to be left on. This may also be fixed by using the .value.replace for each input. I was wondering if there are other, potentially easier ways to get around this error?
[702 byte] By [
btisdabomb] at [2007-11-20 0:01:45]

# 1 Re: A potentially dangerous Request.Form value was detected from the client
the only way i can think of fixing it and retainingh the validateRequest=true is to check the field after updating and replace the "<" and ">" with ">" and "<" which is the htmlEscaped version of that character. I dont know if you will be able to change it before you fire validators though, probably the best event to do it on is when the user leaves focus for that control.
hth,
mcm
mcmcom at 2007-11-9 11:50:51 >
