Last post Nov 01, 2012 11:22 PM by roopeshreddy
Oct 30, 2012 09:13 AM|bhushan13in|LINK
We are planning to develop mobile website.
Technology and tool using : vs2005, c#, asp.net, mobile jquery, HTML5, .net 2.0 (Framework upgradation not possible)
As far as i research on net, we need to determine mobile device, if yes redirect to mobile web page . its Fine !
Following list of mobile device support Mobile jquery and HTML5.
But problem is that
>> How to identify device which are not supporting HTML5 And mobile JQuery.
>> Are we need to handle each request by analysing mobile agent property like browser version, model, etc
Beacause its very difficult to handle devices which are not supporting HTML5 and jquery.
What i am planning is:
first we have to dermine mobile device if yes then naviage to mobile page.
based on mobile capablity, if its support html5 and jquery redirect to mobile aspx page (html5 + jquery)
otherwise navigate to simple page (without html5 and jquery)
Code_sample-1: Detecte Mobile Device Code is here
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim bInfo As HttpBrowserCapabilities = Request.Browser
If bInfo.IsMobileDevice = True Then
Response.Redirect("http://<mobile application path>/default.aspx")
Response.Redirect("http://<desktop application path>/default.aspx")
Any suggestion is highly appreciated.
Oct 30, 2012 04:32 PM|HenryLiang|LINK
For your 2 questions, there is a open-source library called wurfl (http://wurfl.sourceforge.net/) that deals with device recognition. It comes with a large list of devices with supported features
Of course, giving end users options to load either desktop version or mobile version is necessary, in case you can't recognize the device. E.g. if you visit gmail website with your phone, it loads mobile version by default but allows you to switch to desktop
Oct 31, 2012 01:51 AM|bhushan13in|LINK
Thanks for replay.
Question that i want to ask is...
>>are we need to render diffrent webpage for the device which are not supporting html5 + jquery and diffrent webpage for devices which support html5 + jquery?
>>and how we distiguish between supporting and non supprting device.
Oct 31, 2012 06:32 PM|HenryLiang|LINK
A: Yes, you do. Html5 is like another language than previous html, so you need to have 2 separate backend logic to render different html output. In asp.net mvc, it actually allow you to config the page output in html5 flavor when you create your mvc web
A: According to WURFL, it is difficult to just mark certain device is "html5=true" and others to "html5=false", due to the incompleteness of html5 standard, so one way to distinguish is assume certain version of iOS, android 2.x and windows phone 7.x+ will
be html5 supporting devices. Please refer to
Hope this helps.
Nov 01, 2012 11:22 PM|roopeshreddy|LINK
To detect the Mobile devices, you may have to use UserAgent string -
Request.Browser may not work properly with new devices, since it doesn't have the browser files!
Hope it helps u...