Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

[Range(typeof(bool),"true","true",

        [Display(Name = "I am over 18 years old")]
        [Range(typeof(bool), "true", "true", ErrorMessage = "Please confirm you are at least 18 years old")]
        public bool OverEighteen { get; set; }
Source by forums.asp.net #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+6 =