1. ValidationHelper class
The IsValidStateNames(), IsValidPhoneNO() , IsValidHPNO(), IsValidICNO(), IsValidPostalCode() are no longer limited to Malaysia context. For instance, to validate the phone number of US,
if(ValidationHelper.IsValidPhoneNO(strInput,"(999)999-9999"))
// true or false
in which the "(999)999-9999" is the input mask pattern that used to validate the US phone number format.
2. SecurityHelper class
The CompareValueToHash() method can now accept both string parameters of user input and hashed string. For instance,
string strPassword = SecurityHelper.GenerateHashInString("abc");
if(SecurityHelper.CompareValueToHash("abc",strPassword))
// true or false
Download Examples and Library here
No comments:
Post a Comment