Ejemplo n.º 1
0
        public static string GetFomart(string key, string format, string def)
        {
            string tstr = UtilsCore.ParseString(System.Web.HttpContext.Current.Request[key]);

            System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(format);
            if (reg.IsMatch(tstr))
            {
                return(tstr);
            }
            else
            {
                return(def);
            }
        }
Ejemplo n.º 2
0
        public static string GetString(string key, string def)
        {
            string ret = UtilsCore.ParseString(System.Web.HttpContext.Current.Request[key]);

            return((ret == string.Empty) ? def : ret);
        }