iis - How to publish an asp.net website on work network? -


i have been developing asp.net application , work colleagues give me feedback on it. tried running on iis because database located on remote server, unable host properly?

also, how can colleagues access site? host name, etc

you can update connection string remote server (providing db accepts external requests).

something (assuming sql)

data source=190.190.200.100,1433;network library=dbmssocn;initial catalog=mydatabase; user id=myusername;password=mypassword; 

it's ugly hack, can if else statement, detect domainname (environment.userdomainname()) , if matches server use 1 connection string, if it's office's domain, use that!

this means, can still use local iis!


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -