public static decimal GetFormDecimal(string key, decimal def) { string val = DoRequest.GetFormString(key); if (Utils.IsNumber(val)) { return(decimal.Parse(val)); } return(def); }
public static int GetFormInt(string key, int def) { return(Utils.StrToInt(DoRequest.GetFormString(key), def)); }