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