Posted on: 3/3/2015 2:00:02 PM | Views : 522

Hi, Due to error: potenciall dangerous character from user input controls I've updated my framework 4.5 web forms application to validateRequest="false"
I'm now checking all these user inputs with
Server.HtmlEncode( I would like to create a custom validation class inheriting from RequestValidator but, would I be able to do this encoding inside the method?
From what I see out there what this CustomRequestValidation  does is override the method
IsValidRequestString(HttpContext context, string value, RequestValidationSource requestValidationSource, string collectionKey, out int validationFailureIndex) but this don't have any out string with my new string with HTML tags encoded.
It is possible to encode the user input inside this method? Or I have to encode everything bef ...

Go to the complete details ...