Vb net handles validating
Request validation is generally desirable and should be left enabled for defense in depth.It should NOT be used as your sole method of XSS protection, and does not guarantee to catch every type of invalid input.Super Validator can work with any of these components set or without any of them at all if you are planning to report validation results some other way.Next step is to choose the way Super Validator performs validation.This kind of situation is handled using validation groups.
For example you can require the input for text-box and enforce the format to be an email by assigning Validation1 and Validation2 properties.To ensure this is configured correctly request Validation Mode should be set to "4.0" (or not set at all) in web.config: There are enhancements added to request validation starting with ASP.NET 4.5 that include deferred ("lazy") validation, the ability to opt-out at the server control level, and the ability to access unvalidated data.The easiest way to find out how to do something from code is to setup the control the way you want it using designer and then explore Initialize Component() method. Error Provider = my Error Provider1 super Validator1. You assign your custom error provider to Custom Error Provider property.Here is simple setup for Super Validator control: C# Dev Components.