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. Retrieving data from webapp database

Retrieving data from webapp database

Scheduled Pinned Locked Moved Mobile
databasecsharpjavascripthtmlasp-net
5 Posts 3 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.
  • U Offline
    U Offline
    User 9418896
    wrote on last edited by
    #1

    Hello, i plan on building a mobile app using html/javascript with mosync. The app needs to connect to an asp.net webapplication i have and retrieve data from it's database(Ms Sql Server 2012). I do not know if that is possible thus i am hoping someone can please shed some light on how i can do this.

    M P 2 Replies Last reply
    0
    • U User 9418896

      Hello, i plan on building a mobile app using html/javascript with mosync. The app needs to connect to an asp.net webapplication i have and retrieve data from it's database(Ms Sql Server 2012). I do not know if that is possible thus i am hoping someone can please shed some light on how i can do this.

      M Offline
      M Offline
      matrix13
      wrote on last edited by
      #2

      Dear Member 9465564 I actually worked in project like you ask and no problem there. you make the site make DB and try it worked fine.. all you want to do that the mobile must connect to same network with your web server and enjoy. emm some problem you face the web site re-size in mobile phone devices..

      U 1 Reply Last reply
      0
      • M matrix13

        Dear Member 9465564 I actually worked in project like you ask and no problem there. you make the site make DB and try it worked fine.. all you want to do that the mobile must connect to same network with your web server and enjoy. emm some problem you face the web site re-size in mobile phone devices..

        U Offline
        U Offline
        User 9418896
        wrote on last edited by
        #3

        So basically in the mobile app i change the host name in the db connection to that of the website instead of using 'localhost' like i normally do. Is that what you are saying?

        1 Reply Last reply
        0
        • U User 9418896

          Hello, i plan on building a mobile app using html/javascript with mosync. The app needs to connect to an asp.net webapplication i have and retrieve data from it's database(Ms Sql Server 2012). I do not know if that is possible thus i am hoping someone can please shed some light on how i can do this.

          P Offline
          P Offline
          Prasad Khandekar
          wrote on last edited by
          #4

          Hello,

          Member 9465564 wrote:

          The app needs to connect to an asp.net webapplication

          In that case you do not need to connect to the web application's database. Further in a poduction environment nobody is going to expose the database in a such a way that it can be directly accessed over internet. The best way to access the data is to create the web services and access those. Following CP articles will get you started in creating web services.

          • Understanding the Basics of Web Service in ASP.NET[^]
          • Create RESTful WCF Service API: Step By Step Guide[^]

          Regards,

          Prasad P. Khandekar Knowledge exists, man only discovers it.

          U 1 Reply Last reply
          0
          • P Prasad Khandekar

            Hello,

            Member 9465564 wrote:

            The app needs to connect to an asp.net webapplication

            In that case you do not need to connect to the web application's database. Further in a poduction environment nobody is going to expose the database in a such a way that it can be directly accessed over internet. The best way to access the data is to create the web services and access those. Following CP articles will get you started in creating web services.

            • Understanding the Basics of Web Service in ASP.NET[^]
            • Create RESTful WCF Service API: Step By Step Guide[^]

            Regards,

            Prasad P. Khandekar Knowledge exists, man only discovers it.

            U Offline
            U Offline
            User 9418896
            wrote on last edited by
            #5

            Okay thanx alot, i'll read on that then. :D

            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