Nov 22, 2010 06:15 PM|Inx|LINK
First of all..I have the following model:
And I whould like to enable validation for the Published property, and I want to check if the value of the property actually is a real DateTime-format..cause for now, it seems to take anything as long as it is a string..so is there any easy way to achive this,
I tried to use the [CustomValidation]-attribute but I just vouldnt figure out how that works..so if anyone could help me to explain the concept of that aswell I whould really appreciate it..and one more thing...if some how manage to use the CustomValidation-attribute,
whould that validation also "kick-in" on client side?..or whould that only be on the server-side?
Thanks in advance!