CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Alternative to appsettings -> key

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.