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. Mobile Development
  3. Mobile
  4. Mobile Web Application

Mobile Web Application

Scheduled Pinned Locked Moved Mobile
questioncsharpasp-net
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.
  • C Offline
    C Offline
    Civic06
    wrote on last edited by
    #1

    What are my options for creating websites for mobile? What is WAP? Or use ASP.net to sniff which browser the request came from?

    A 1 Reply Last reply
    0
    • C Civic06

      What are my options for creating websites for mobile? What is WAP? Or use ASP.net to sniff which browser the request came from?

      A Offline
      A Offline
      Amimpat
      wrote on last edited by
      #2

      Hello Use standard ASP.NET website project for creating mobile website. Important thing here is to detect request, if it is from mobile device than redirect user to mobile compatible pages instead of standard website. For accurate and easy mobile device detection use http://51degrees.codeplex.com[^] It is an ASP.NET open source module which detects mobile devices and provides auto redirection to mobile optimized pages when request is coming from mobile device. It makes use of WURFL mobile device database. Sample web.config configuration for redirecting users to different mobile pages based on MobileDeviceManufacturer property. You can create your own custom rules for redirection based on other mobile properties.

      <redirect firstRequestOnly="false"

                mobileHomePageUrl="~/Mobile/Default.aspx"
      
                timeout="20"
      
                devicesFile="~/App\_Data/Devices.dat"
      
                mobilePagesRegex="/(Apple|RIM|Nokia|Mobile)/">
      
        <locations>
      
          <location url="~/Apple/Default.aspx">
      

      <add property="MobileDeviceManufacturer" matchExpression="Apple"/>

          </location>
      
          <location url="~/RIM/Default.aspx">
      

      <add property="MobileDeviceManufacturer" matchExpression="RIM"/>

          </location>
      
          <location url="~/Nokia/Default.aspx">
      

      <add property="MobileDeviceManufacturer" matchExpression="Nokia"/>

          </location>
      
        </locations>
      
      </redirect>
      
      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