Last post Aug 15, 2005 07:33 AM by Qnnn
Aug 06, 2005 10:59 PM|dslaby|LINK
Aug 11, 2005 05:55 PM|Qnnn|LINK
Are you sure your code doesn't cause endless loop?
Aug 11, 2005 06:46 PM|dslaby|LINK
Yes, it was my code. The code was referencing the page calling itself. Sometimes you can look at something and not see the bugs before your eyes until you give up in frustration.
The code redirects for a Pocket PC 2002, but fails for a Pocket PC 2003. There must also be a browser configuration that has to be added to the web.config file - do you know what might need to be added?
Aug 12, 2005 06:27 AM|Qnnn|LINK
Aug 14, 2005 07:45 PM|truelove|LINK
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
If Not IsPostBack Then
Dim obj As System.Web.Mobile.MobileCapabilities = CType(Request.Browser, System.Web.Mobile.MobileCapabilities)
If Not obj.IsMobileDevice Then
Aug 15, 2005 07:33 AM|Qnnn|LINK
The example above works only if ASP.NET can recognize the device. If it doesn't then it uses default fir IsMobileDevice (true).