Retrieving data from webapp database
-
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.
-
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.
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..
-
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..
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?
-
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.
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.
-
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.
Okay thanx alot, i'll read on that then. :D