appsettings

AppSettings in markup issue

I am trying to put this in my markup: <script type="text/javascript" src="<%$ AppSettings:proxyScriptUrl %>"></script> But for some reason this is not accepted. What am I doing wrong here? The requirement is that I do not use a helper method but that the expressionbuilder is used in the markup. ...

Writing drive C: in Windows 7/Vista

I am developing an application that saves its settings in the install folder. If I install the app in the Program Files on drive C: and attempt to write the settings file I get an exception and that's it. I know that the User Account Control (UAC) migth be the one that is not letting my app modify the content of the file. I need help w...

how to enable push notification types from settings bundle when registering for push notification?

I have created settings bundle and also three switches for alert,sound and badge.i am also getting 0 or 1 according to switch(On/Off).Now how do i enable only selected notification types when calling this method [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(here i want to set types from settings)]; how do i ...

Settings bundle - PSMultiValueSpecifier - multi select

Hi all, Is it possible to select more than one value using PSMultiValueSpecifier at settings bundle? ...

Changes in App.config do not reflect after restarting the application

I am using an app.config file to store the dynamic parameters of my application. The problem is, when I change a value in app.config file, and start the application, it doesn't load the new value from config file. Seems like the values in app.config file are being read and embedded in exe file only at compile time! This is how I read t...

ConfigurationManager.AppSettings["SettingName"] vs Properties.Settings.Default.SettingName when should I use each?

What should dictate when I should use the configurationManager.AppSettings or the strongly typed settings that visual studio generates? The strongly typed ones seem much more appropriate in most cases, but I suppose that it would be possible to add settings dynamically to a deployed application using the ConfigurationManager approach, b...

Change application settings for a deployed class library?

If I define application level settings (using Properties.Settings) within a class library, can I change those settings once that dll is deployed to an app? If so, how? Do I just create the equivalent setting in web.config to override it? ...

ASP.NET and storing dynamic data - XML or Database?

I have an ASP.NET application and need to store some settings. The settings are, among other things, titles on pages shown in my application. The titles are changed on a regular basis (every week or so) and I'm wondering on how to do this the smart way: Save the settings in the web.config (slow read time, and application has to be re...

Using appsettings in the DAL layer

I have a winforms application in which some of the data is stored in XML files. The location where these XML files should be stored can be configured by the user, and is stored in the AppSettings. All my layers are separate assemblies. Can I access my settings from my DAL assembly, or should I pass this as an argument through all my laye...

iphone: Possible to get Titles from a PSMultiValueSpecifier in the settings.bundle?

Hi.. I`m planning to use the titles in a PSMultiValueSpecifier from settings.bundle in a pickerview. I only know how to get my selected value based on the key from the settings.bundle. Is it possible to get ALL titles based on the key ? ...

Deploying default settings for different customers

My question is sort of linked to this existing question http://stackoverflow.com/questions/1262836/how-to-deploy-a-desktop-net-application-with-custom-settings-per-user However, I understand the idea of using Application Settings what I can't find information on is, how should I deploy the application settings for different customers? ...

Classes that mimic the behavior of iPhone Application Settings...but within an app?

Has anyone written iPhone classes that mimic the behavior of the Application Settings? It would be nice to be able to define settings tables for use within my app using exactly the same XML structure, etc. ...

How to offer application settings to an end user of your library, at design time, in .net, winforms

I have a library with with a set of classes with a common property that i'd like an end user to be able to override without overriding all the classes. The important thing is, the property has to be overriden at design time. Lets say, for simplicity's sake, that it's the background colour of a UITypeEditor. I can do this by putting the...

C# -> Updating an AppSettings.config file on Win7/Vista

I can't see anything on here but I do remember being told that If you want an application to update a config file then it needs to be under ... **C:\Users\Ibrar Mumtaz\AppData** Well somewhere there, the reason being is that the user should have permisions to update a config file here and not under the applications install folder. Thi...

Accepted way to let user "reset" apps settings (NSUserDefaults)?

I'd like to allow users to reset the Defaults in the iPhone's Settings for my app. I don't seem to be able to find any examples in apps that I've seen. Basically you'd go to Settings and find the settings for your app. At the bottom of the list there'd be some kind of option to Reset or Defaults or whatever. I'm just not sure how to hand...

ASP.NET ExpressionBuilder syntax - output AppSetting within img tag

I would like to use ASP.NET's ExpressionBuilder syntax to dynamically retrieve domain of static content from an AppSetting. I am using the following syntax, which does not work: <img src="<%$Appsettings:STATIC_CONTENT_DOMAIN %>/img/logo.jpg" alt="logo" width="176" height="159" /> FYI, the desired HTML output is: <img src="http://sta...

Best practices for user settings/configuration in a c# client app

I am working on a .NET app that will also run on iphone via monotouch and osx/linux via mono. The app will hold profiles for various users and the profile used for a particular session will be selected on startup, kind of like Skype. To store per-user settings, I am considering using the Application Settings system that's part of .NE...

Access Application level settings in Silverlight Project

I have solution containing silverlight project, wcf service project and other projects of C# i want to have one app settings file from where all projects can load settings. Which will be useful in case of db interaction, logging etc.. Currently i m changing all app settings file in all projects. ...

appSettings file attribute equivalent for applicationSettings

In a asp.net web.config file you can do <appSettings file="local.appSettings.config"> <add key="foo" value="bar" /> </appSettings> and it will look in local.appSettings.config for any overrides to the foo/bar setting. Is there an equivalent for applicationSettings? Something like this <applicationSettings file="local.application...

Asp.net Webdeployment Project override applicationSettings

I got a web deyploment project for a web application project in vs 2008. While building the web deployment project, I want to replace properties in the web.config. My settings are autogenrated by the deisgner. <applicationSettings> <NAMESPACE.Properties.Settings> <setting name="Testenvironment" serializeAs="String"> <value>True...