Last post May 14, 2008 04:45 AM by fravelgue
May 13, 2008 05:56 PM|selarom|LINK
I've been researching this for a while and I just can't seem to get it. I need for the page to detect if the browser is on a mobile device and adjust the theme accordingly. It successfully detects pocketpc so my pda sees the mobile theme, but my phone (samsung
a900) and my girlfriends phone (palm centro) both get the standard instead of the mobile theme.
in my research I've found two answers:
1) Request.Browser.IsMobileDevice - first thing I tried. doesn't work
2) a link to the App_Browsers page on msdn - yeah I'm sure this is the route I need to go, but I need more than just a link! how do I use this thing? Every resource I find says something along the lines of "the app_browsers is a great way to detect browser
capabilities" then it has a link to the msdn page on App_Browsers. and that's it! I read that page, it just tells me how to parse through the detected capabilities. Which capabilities (or lack thereof) make a device mobile? once I figure that out, how does
putting those capabilities into a .browser file do any good? how do I tie that to a specific device and tell the page to switch the theme?
so, really, how do I use the App_Browsers folder to detect browser capabilities? and when I do that, how do I programmatically USE that to change the theme? I would greatly appreciate some guidance here as I've never used this tool before and I really want
to be able to understand it!
May 14, 2008 04:45 AM|fravelgue|LINK
I think you should use Wurfl (email list).