Exemple #1
0
 public static bool IsFromMobile()
 {
     return(RegExec(DataConvert.ToString(HttpContext.Current.Request.UserAgent).Trim().ToLower(), "(iphone|ipod|android|ios)"));
 }
Exemple #2
0
 public static string GetAppSettingsKeyValue(string keyName)
 {
     return(DataConvert.ToString(ConfigurationManager.AppSettings[keyName]));
 }