How to point a website to localhost or hostname

Rennerdo30

New Member
How can I make the website point to a local host instance of a webservice if running through visual studio but point to the server using the hostname when running on iis.I have a ASP .Net web apis project with rest apis that runs on a specific host. I have a separate website project that makes ajax calls to the web apis project. I want the website to point to the localhost instance of the webserver when running through visual studio for it's ajax calls but use the loadbalanacer hostname when deployed and running on the iis server.
 
Back
Top