Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
What is the difference between Range and Stringlength Data Annotation attribute ?

Posted On: 22/02/2014 10:42:43
StringLength validates the count of the string entered where as the Range attribute validates the range i.e. whether the user input is between given range.

StringLength attribute is use to validate properties like Password or Firstname where we don't want user to specify the value more that particular length. Range attribute is used to validate property like Age where we want to user to specify age between given range.
MOST VIEWED QUESTION:
 
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us