I read that its bad (not recommended) to use User Agent Sniffing to send the right content for a mobile browser, so I'm wondering what is the best way to do this?
I use ASP.NET MVC and I created my site and it works well on desktop browsers, so I want to start creating a mobile version. When a mobile browser arrives on my site, I would like to use a different set of views, which ideally has the following attributes:
- Link to pre-scaled images
- Use minimal javascript
- Delete all but main content
My first thought was to sniff the user agent and then send another .CSS file, but as stated above, I read that this is a bad way to do this, so I ask you for my thoughts.
asp.net-mvc mobile mobile-website
Nate
source share