Last post Nov 29, 2006 04:14 AM by prd
Nov 22, 2006 08:17 AM|prd|LINK
I am struggling with a problem where all 6 series nokia phones (that I've tested) are being renderred by .net in WML instead of XHTML. If I use the MobileCapabilities class to look at the user agent property of an N90 or 6680, as example, the return will
tell me "Nokia". However, if I manually look in the browser request I will see the exact user agent with phone model.
Have any of you struggled with the same problem / found a solution? Is there a way I can force .net to render with XHTML, HTML or WML by skipping the automatic detection?
Any comments are appreciated.
Nov 24, 2006 11:59 AM|darragh|LINK
This is one thing I absolutely hate about ASP.NET. I don't see why Microsoft think they know anything about device-profiling handsets.
In fact they don't. Your exmple of them sending Nokia series 60 phones WML proves this.
There should be an easy way to disable ASP.NET browser capabilites adaptive rendering (or whatever they call it) but I haven't come across any easy way.
A "hack" to solve the problem you're having is to explicitly set the Content type to "text/html" in the @page directive.
If anyone knows a more "complete" solution to disabling Microsoft's half-assed attempt at mobile device profiling I'd love to hear it.
adaptive rendering mobile device nokia
Nov 29, 2006 04:14 AM|prd|LINK
Thanks for your response, I too am becoming pretty fustrated with 'ASP.NET browser capabilites adaptive rendering'