Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. question about IsMobileDevice

question about IsMobileDevice

Scheduled Pinned Locked Moved ASP.NET
questioncomhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    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>

    S 1 Reply Last reply
    0
    • J Jassim Rahma

      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>

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups