asp.net mvc2 validate type double

Posted by ile on Stack Overflow See other posts from Stack Overflow or by ile
Published on 2010-06-01T07:06:36Z Indexed on 2010/06/01 7:13 UTC
Read the original article Hit count: 172

Filed under:
|
|
[MetadataType(typeof(Deal_Validation))]
    public partial class Deal
    {
    }

    public class Deal_Validation
    {
        [Required]
        public string Title { get; set; }

        public double? EstValue { set; get; }
    }

How to validate EstValue (check if it is of type double?)

Thanks

© Stack Overflow or respective owner

Related posts about validation

Related posts about asp.net-mvc-2