开发者

Why does HttpBrowserCapabilities not work at all?

I've got a web app targeting .net 3.5 and im trying to render browser specific c开发者_如何学运维ontent, specifically targeting iPads. I've visited my page from various browsers including iPhone, iPad, Chrome, Safari and the Request.Browser variables always seem to be wrong. Apologies for the rant, I thought this was a .Net feature that worked out of the box.


This feature can be made to work by copying .browser files into your application App_Browsers folder. By default they live in %SystemRoot%\Microsoft.NET\Framework\version\CONFIG\Browsers.

Even still for some reason it was not detecting the different browsers that I was using, however I discovered the OceanAppleWebkit.browser by Owen Brady which worked immaculately for my purposes. It may be a bit dated by now but if you know of any updated sources for .browser files it would be appreciated if you post a comment with a link. Thanks!

http://owenbrady.net/browsercaps/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜