Get User Browser


                if (HttpContext.Current.Request.Browser != null)
                {
                    if (HttpContext.Current.Request.UserAgent.Contains("Edge")
                        && HttpContext.Current.Request.Browser.Browser != "Edge")
                    {
                        return "Edge";
                    }
                    else if (HttpContext.Current.Request.Browser.IsMobileDevice)
                    {
                        return HttpContext.Current.Request.Browser.Browser;
                    }
                    else
                    {
                        //- All others
                        return HttpContext.Current.Request.Browser.Browser;                        
                    }
                }
                else
                {
                    return HttpContext.Current.Request.Browser.Browser;
                }
 

Add Feedback