Is there a way to disable query validation only for certain text fields instead of the entire page? I use Server.HtmlEncode / Decode because users legally use <and>, but I donβt want to use ValidateRequest="false" on the whole page, because someone can add a text box later and forget to avoid typing, in which case I would like the check to be performed so that the error is detected and not vulnerable to html injection.
There seems to be a simple solution, but I was not lucky to find it.
(Webforms not MVC)
Davy8
source share