Class PropertyAppSettingsControl
A property control that creates a drop down list with options that are defined in the appSettings section in web.config. The name of the property should match the key for the app setting.
Inherited Members
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class PropertyAppSettingsControl : PropertySelectControlBase, IPropertyControl, INamingContainer, IRenderSettingsExamples
   The settings should be defined like this in web.config:
    <appSettings>
<add key="MyProperty" value="label1;value1|label2;value2" />
<add key="AnotherProperty" value="label10;value10|label20;value20" />
</appSettings>Constructors
PropertyAppSettingsControl()
Declaration
public PropertyAppSettingsControl()Properties
AutoGenerateEmptyValue
Gets or sets a value indicating whether an empty value should be created for the DropDownList.
Declaration
protected override bool AutoGenerateEmptyValue { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
Overrides
CacheKey
Gets the cache key for the app settings value.
Declaration
[Obsolete("Use AppSettingsOptionsLoader instead", false)]
protected string CacheKey { get; }Property Value
| Type | Description | 
|---|---|
| System.String | The cache key for the app settings value. | 
Methods
GetCashedOptionList()
Gets the options for this property from the appSettings section in web.config.
Declaration
[Obsolete("Use AppSettingsOptionsLoader instead", false)]
protected string GetCashedOptionList()Returns
| Type | Description | 
|---|---|
| System.String | A string with the possible options for this property. | 
SetupEditControls()
Used to apply a custom setup to the edit controls.
Declaration
protected override void SetupEditControls()Overrides
Remarks
This method is called from CreateEditControls after the edit control(s) have been created.
Implements
      System.Web.UI.INamingContainer
  
  
  