开发者

Browser capabilities redirect in asp.net mvc

开发者 https://www.devze.com 2023-01-12 18:04 出处:网络
I want to detect certain browsers (IE6) and redirect them to a page that tells them to get a better browser.

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

精彩评论

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