Sunday May 1st

Friday April 29th

Thursday April 28th

Wednesday April 27th

3 Kicks

Using Validation Application Block in ASP.NET

Any web page which requires input from the user simply cant allow just any data to be entered because the data might be too long, missing or incorrect. We need to validate the data entered by the users in a number of ways; for example, First Name and Last Name might be required fields and Date of Birth cannot be greater than the current date etc. We can very well use the client side validators provided by ASP.NET like RequiredFieldValidator, CompareValidator or RegularExpressionValidtor but is that really enough? What if JavaScript is disabled by the client? What if we need to validate our business objects? It is often important to validate data several times within the same application. For example, you may need to validate object instances that you: -Generate in separate tiers or components of your application -Retrieve from a cache, a repository, or a third-party data access layer -Receive from a Web Service as an object instance or a set of property values -Reconstruct from existing values, perhaps populating them by copying properties from a similar object or using values retrieved from a database Enter the Enterprise Library with its Validation Application Block.


Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network