question about IsMobileDevice
-
I ma trying to determine if user is browsing my website from mobile device. I found the IsMobileDevice and tried to use it this way: <pre> if (Request.Browser.IsMobileDevice == true) { Response.Redirect("http://mobile.JassimRahma.com/"); } </pre> but whenI browsed from my Blackberry Curve 8520 it's going to the normail website (full) which means it didn't determine it's a mobile? why? and how can fix this?<pre></pre>
-
I ma trying to determine if user is browsing my website from mobile device. I found the IsMobileDevice and tried to use it this way: <pre> if (Request.Browser.IsMobileDevice == true) { Response.Redirect("http://mobile.JassimRahma.com/"); } </pre> but whenI browsed from my Blackberry Curve 8520 it's going to the normail website (full) which means it didn't determine it's a mobile? why? and how can fix this?<pre></pre>
Try this link..! http://51degrees.codeplex.com/[^] http://mdbf.codeplex.com/[^]
jrahma wrote:
why?
By default the aspx file take the browser as system in order to specify its a mobile we should install Aspnet_regbrowsers.exe from the below specified folder Once you install C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regbrowsers.exe or C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regbrowsers.exe You will find the browser detection files in C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers or C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\Browsers http://msdn.microsoft.com/en-us/library/ms229858(VS.80).aspx[^] Hope It Helps..!:cool::thumbsup:
LatestArticle :Alternative Way to Interact with Desktop thr windows services