开发者

Browser capabilities redirect in asp.net mvc

I want to detect certain browsers (IE6) and redirect them to a page that tells them to get a better browser.

Same thing for detection of Javascrip开发者_StackOverflow中文版t being enabled, if the browser has it disabled I want to send them to a page which explains this fact.

Is there an elegant or preferred way to do this in mvc?


you should first Detect Browser Types by System.Web.HttpBrowserCapabilities browser = Request.Browser and then you can send users to a page which tells them to get a better browser . and see for more information How to: Detect Browser Types and Browser Capabilities in ASP.NET Web Pages


This is a clean and great way of doing it.

http://ie6update.com/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜