Last post Dec 01, 2014 08:41 AM by vivek_cs
Nov 28, 2014 06:49 AM|vivek_cs|LINK
<div class="markDownOutput ">
</div> <div class="markDownOutput ">ValidatorFactory valFactory = EnterpriseLibraryContainer.Current.GetInstance<ValidatorFactory>();
Validator<QuantumSV> validator = valFactory.CreateValidator<SV>("Validation Ruleset");
SV objRule = new SV();
objRule.FirstName = txtFirstName.Text;
objRule.LastName = txtLastName.Text;
objRule.Email = txtEmail.Text;
ValidationResults valResults = validator.Validate(objRule);
Always return true..
Configuration details mentioned in my prior post
Dec 01, 2014 08:41 AM|vivek_cs|LINK
This is working fine as required as a basic requirement. Problem is due to not having complete (Proper) reference for Validaiton Application Block 5.0 specifically with ASP.Net
as we need to do certain changes then only property will be read from config.