Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i alredy make one site in asp.net c#.
front end is asp.net with c#
back end is sql server 2008 r2


now i want to host my website ..
but i am confuse that how to host asp.net website with database........?
Posted

1 solution

You can host your Website in IIS and before doing that you should be mentioning the connection string value for accessing the Database. So that connection string should be pointing to the IP address or the server name where the Database is Present.

To mention it in simple way, we will be using localhost in the connection string to work with our local application. But now when we want to access the web application from other machine with that url, then the connection string should contain either Ip address or Server name.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900