2012-01-25 33 views

回答

4
[Range(0.01, double.MaxValue, ErrorMessage = "Affordable fees cannot be Zero or Negative.")] 
public decimal AffordablePayment { get; set; } 
0

試試這個:

(^\d*\.?\d*[1-9]+\d*$)|(^[1-9]+\d*\.\d*$)