Browser HttpModule中的浏览器检测
有没有办法检测在HttpModule中发出请求的浏览器 谢谢Browser HttpModule中的浏览器检测,browser,httpmodule,Browser,Httpmodule,有没有办法检测在HttpModule中发出请求的浏览器 谢谢 public class TestModule : IHttpModule { public void Dispose() { throw new NotImplementedException(); } public void Init(HttpApplication context) { context.Request.Browser....; } } 通常不鼓励
public class TestModule : IHttpModule
{
public void Dispose() {
throw new NotImplementedException();
}
public void Init(HttpApplication context) {
context.Request.Browser....;
}
}
通常不鼓励浏览器嗅探。我正在开发一个HTTPModule,以确定用户是否从移动浏览器浏览,如果是,则只为他们生成纯文本内容。