Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to save the connection in web.config or other config
Message
From
24/11/2009 14:39:18
 
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01436177
Message ID:
01436444
Views:
32
Aha!
Thanks for clearing that up, Paul.
That makes sense and yes, I'm dense.


>>I'm not entirely sure what you're referring to, but if it's Rick's config. class what it actually does is instanciate the configuration class (which sets all the fields to their default value, such as 0.05M), then checks to see if the config. values are already in the .config file. If they are, it loads them from there (updating/replacing values as necessary). If it doesn't exist, it writes them to the file. So it's not really providing a hardcoded value as much as providing a default value.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform