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/
精彩评论