Now, I have a web application made using [html, asp.net, sql server,javascript & ajax].
As usual I use ajax to send data to the server using the aspx page.
My Application is working fine, but I want to deploy it on Android.
The asp urls I use at the ajax function are:
url:'http://localhost:49169/xxxxx.aspx'
As you can see, this won’t be working on the mobile coz the url changes everytime.
So what should I do in order to change the url and IP Address to make them static & take the new configurations of the IP without recompiling the project ?
Thanks.
It depends upon which version of visual studio you are using. But the general gist is that you can set the port from “using dynamic port” which it chooses one for you e.g. 49169 to a fixed port which you can specify.
Here are the intructions for vissual studio 2008, I believe it’s the same intructions (or very similar) for other versions of visual studio:
http://msdn.microsoft.com/en-us/library/ms178109%28v=vs.90%29.aspx