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