hiraldesai
Posts: 38
|
Posted: 07/28/2008, 6:19 PM |
|
Hi,
In reference to ASP .Net VB codecharge project, I want to be able to add my custom application level keys to the project. I know it can be done using appsettings -> key but adding custom keys to this area means if I have to do any changes to the project settings I will lose the custom keys.
I found that CCS doesn't use connectionstrings area of web.config to store connection strings. So I can add my custom area like this to store keys and I won't lose any settings.
<connectionStrings>
<add name="myCustomKey" connectionString="myCustomValue"/>
</connectionStrings>
But from a development point of view in a multi developer environment using sort of code is not a very good practice.
myCustomVariable = System.Configuration.ConfigurationManager.ConnectionStrings("myCustomKey").ToString
Is there an alternative to this anyone?
Regards,
Hiral
_________________
-------
Hiral |
|
|
|