Esempio n. 1
0
 public static long GetCookieLong(string str, long def)
 {
     if (HttpContext.Current.Request.Cookies[str] != null)
     {
         return(TypeParseHelper.StrToLong(HttpContext.Current.Request.Cookies[str].Value, def));
     }
     return(def);
 }
Esempio n. 2
0
 public static long GetFormLong(string strName, long defValue)
 {
     return(TypeParseHelper.StrToLong(HttpContext.Current.Request.Form[strName], defValue));
 }