Last post Dec 07, 2017 12:02 PM by mgebhard
Dec 07, 2017 08:57 AM|OmTechGuy|LINK
As we know, ASP.NET RequestValidator only works on http requests that contains dangerous characters that not encoded.
I would like to validate all the request fields even if they doesn't contains dangerous strings. Therefore, i tried to create a custom RequestValidator class but i can only override the method IsValidRequestString to do the validation and as i mentioned above,
the method is not executing when the request does not contains dangerous characters.
in the RequestValidator document, i noticed that there is a method called InvokeIsValidRequestString but its not a virtual so i can not override it.
Is there an option to allow the overrided IsValidRequestString to be executed for every request? is there an option to override the InvokeIsValidRequestString method somehow?
Dec 07, 2017 12:02 PM|mgebhard|LINK
Validation in ASP.NET is handled using validation controls. Why are you creating a custom request validator?