예제 #1
0
 /// <summary>
 /// Determine if current user browser is Internet Explorer with conditional version compatibility
 /// </summary>
 /// <param name="request">Http Request</param>
 /// <param name="lessThanVersion">Optional: Determine if current IE version less than the given argument</param>
 /// <returns>Boolean</returns>
 public static bool IsIE(this HttpRequestBase request, int?lessThanVersion = null)
 {
     return(BrowserCompatibility.IsIE(request.Browser, lessThanVersion));
 }
예제 #2
0
 /// <summary>
 /// Get Html Class with Internet Explorer confirmation and versioning for use of CSS and UI calls
 /// </summary>
 /// <param name="request"></param>
 /// <returns>String</returns>
 public static string GetHtmlClass(this HttpRequestBase request)
 {
     return(BrowserCompatibility.GetHtmlClass(request.Browser));
 }