Last post Dec 29, 2009 04:59 PM by uid639299
Dec 28, 2009 09:11 AM|Dharmaraja|LINK
I want to create some webservices for my new project, In that i need to validate the input parameter. instead of writing the validation logic for each parameter, i want to create a separate class library which i can use in some other project also. these
validations used to check the zip code and email address like that. So is there any class which i can use directly to do this validation or i do i need to write the entire logic to do the validation?
Please provide some idea or sample code to do this.
Thanks in advance.
Dec 28, 2009 10:22 AM|irokhes|LINK
you can use Validation Application Block of Enterprise library
Or open source validation library
Dec 28, 2009 12:56 PM|Dharmaraja|LINK
Thanks for your reply.
We are creating only webservice not UI. So i cant use any validation control and we want to validate the parameter in server side logic.
Here i can write the validation logic with condition statements. But before doing that i just want to confirm that is there any built in class to achieve the same then i can use that.I think you can understand my requirement clearly now.
Please provide some idea to achieve this.
Dec 29, 2009 04:59 PM|uid639299|LINK
The Validation Application Block is for server side validations. You decorate your properties of your objects and then you can call a validate method to do the checks.