Exemplo 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);
 }
Exemplo n.º 2
0
 public static long GetFormLong(string strName, long defValue)
 {
     return(TypeParseHelper.StrToLong(HttpContext.Current.Request.Form[strName], defValue));
 }