Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching from development to production mode
Message
From
22/03/2006 08:44:49
 
 
To
22/03/2006 07:53:49
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Installation, Setup and Configuration
Environment versions
Environment:
ASP.NET
Database:
MS SQL Server
Miscellaneous
Thread ID:
01106567
Message ID:
01106584
Views:
18
You should place the connection string in the web.config file, then read that value whenyou run the app.


>Using .Net2005, how would this best be handled. In my webforms, I have a isProduction property set to either true or false. While false, my webforms use the development SQL Server database etc... Before I publish my Asp.Net web app, I change the property to true so that the production SQL Server databases are used etc...
>
>Is there a better way to do this? A more global way?
>
>Thanks,
>
>Jerry
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform