Reader Level:
ARTICLE

Steps to Create Mobile Application in ASP.NET 2.0

Posted by Abhishek Sharma Articles | Mobile & Embedded February 01, 2010
In this article you will learn how to create mobile application in ASP.NET 2.0.
  • 0
  • 0
  • 37720

  1. Create a File System Website / You can create directly IIS application also.
  2. Create a folder by the name of Mobile
  3. Add a new mobile web user form.

    image1.gif
     
  4. Rename Default.aspx with a new name otherwise it will clash with the normal website default.aspx webform. I'm renaming this with Mobile_Default.aspx

    image2.gif
  5. Design view of Mobile Web Form.

    image3.gif
  6. You have to use only the Mobile Web Forms tools from toolbox.

    image4.gif

  7. Design view of my mobile web form.

    image5.gif

  8. To run the mobile application on mobile devices you have to configure the IIS in your machine.
  9. Start -> Control Panel -> Administrative Tools -> Double click on internet information service.

    image6.gif
     
  10. Cross check that IIS is working in your computer or not. (You can type the url: http://localhost/iishelp/iis/misc/default.asp)
  11. Also check the default web site shouldn't be stopped. If it's stopped then right click on default website and choose an option start.
  12. Now right click on Default Web Site and go to properties.
  13. Choose "Home Directory" tab:

    image7.gif
     
  14. Replace the Local Path from C:\InetPub\wwwroot to your application path.
  15. Go to dos prompt and check your IP Address and machine name.

    arun1.gif
      
  16. Go to internet explorer and type the following url:
    http://localhost/Your Application Name
    http://172.23.22.189/YourApplicationName
    http://00210-E8/YourApplicationName
  17. If it's working fine then first step is over.
  18. Go to your mobile application now.
  19. Go to Tools Menu -> Options -> Devices -> Pocket PC 2003 SE Emulator -> Go to properties

    arun2.gif

    image10.gif
     
  20. Click on Emulator Options.

    image11.gif
     
  21. Cross check that all three above options should be unchecked.
  22. Cross Check Microsoft ActiveSync is installed or not. If not then install it.
  23. Now go to Tools Menu -> Click on Device Emulator Manager.

    image12.gif
     
  24. Right Click on Pocket PC 2003 SE Emulator then connect.

    image13.gif

     arun3.gif
  25. Right Click on Pocket PC 2003 Emulator and click on Cradle

    image15.gif

     
  26. This will automatically state "The Synchronization with Microsoft Async"
  27. Cross check the settings of Microsoft Async

    image16.gif
     
  28. Go to File -> Click on Connection Settings.
  29. Do the appropriate changes

    image17.gif
     
  30. Click on Ok.

    arun4.gif
     
  31. Click on Start and click on settings

    image19.gif

    image20.gif
     
  32. Click on Connections

    image22.gif

     
  33. Double click on Connections

    image21.gif
     
  34. Click on Advanced

    image23.gif
     
  35. Click on Select Networks.

    image24.gif
     
  36. Choose My Work Network and Click on Ok.. Ok... and Ok.
  37. Click on Start and then go to Internet Explorer

    image25.gif
     
  38. Type the URL

    image26.gif
     
  39. Type the specified URL and run application.

    image27.gif

     
  40. Note: When connecting to Microsoft Async it will propmt to configure Microsoft Outlook just ignore that part.
  41. Note: Properly shutdown the Device Emulator. First do uncradle then shutdown and finally close the device emulator.

COMMENT USING

Trending up