Beispiel #1
0
        public static long GetQueryLong(string key, long def)
        {
            string val = DoRequest.GetQueryString(key);

            if (Utils.IsLong(val))
            {
                return(long.Parse(val));
            }

            return(def);
        }
Beispiel #2
0
 public static int GetQueryInt(string key, int def)
 {
     return(Utils.StrToInt(DoRequest.GetQueryString(key), def));
 }