I want to write validation rules in a class.
Ex: To validate a enterdate cannot be less than current date.
Please provide a sample code in C# .I am a very much beginner.
Thanks for your help in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijaya KadiyalaPosted Mar 13, 2009, 1:47 PM
Hi Sateeth,
Thanks for the information. btw its nice article.
Thanks -- Vijaya Kadiyala
Vijaya KadiyalaPosted Mar 13, 2009, 1:47 PM
Hi Sateeth,
Thanks for the information. btw its nice article.
Thanks -- Vijaya Kadiyala
Sateesh ArvetiPosted Mar 13, 2009, 3:00 AM
Use Validation Application block for writing validation rules in a class easily.This application block is part of Enterprise Library and free.Try out this link once:
http://www.c-sharpcorner.com/UploadFile/satisharveti/enterpriseLib301212009030640AM/enterpriseLib3.aspx?ArticleID=5ef7f10e-8448-4d69-a068-a9520fe14a0f
Vijaya KadiyalaPosted Mar 12, 2009, 10:55 AM
Hi
Check out the below link
http://www.java2s.com/Code/ASP/Validation-by-Control/DatevalidationstartenddateC.htm
Thanks -- Vijaya Kadiyala
http://dotnetvj.blogspot.com