Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# function to validate decimal upto p(25,2)

RegularExpressionAttribute.

[RegularExpression(@"^(0|-?d{0,16}(.d{0,2})?)$")]
public decimal Property
{
    get;
    set;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #validate #decimal #upto
ADD COMMENT
Topic
Name
1+9 =