Search code examples
browserhttpmodule

Browser Detection in HttpModule


Is there a way to detect what browser the request is made in the HttpModule?

Thanks.


Solution

  • public class TestModule : IHttpModule
    {
        public void Dispose() {
            throw new NotImplementedException();
        }
    
        public void Init(HttpApplication context) {
            context.Request.Browser....;
        }
    }
    

    MSDN Reference