Class BaseToggle
- Namespace
- InSite.Common.Web.UI
- Assembly
- InSite.UI.dll
[ControlValueProperty("Checked")]
[ValidationProperty("Checked")]
public abstract class BaseToggle : Control, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IPostBackDataHandler, IAttributeAccessor, IHasText, IHasToolTip, IMultilingualDisabled
- Inheritance
-
BaseToggle
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
BaseToggle(string)
protected BaseToggle(string inputType)
Parameters
inputType string
Properties
Attributes
public Dictionary<string, string> Attributes { get; }
Property Value
- Dictionary<string, string>
AutoPostBack
public bool AutoPostBack { get; set; }
Property Value
- bool
CausesValidation
public bool CausesValidation { get; set; }
Property Value
- bool
Checked
public bool Checked { get; set; }
Property Value
- bool
CssClass
public string CssClass { get; set; }
Property Value
- string
DisableTranslation
public bool DisableTranslation { get; set; }
Property Value
- bool
Disabled
public bool Disabled { get; set; }
Property Value
- bool
Enabled
public bool Enabled { get; set; }
Property Value
- bool
OnClientChange
public string OnClientChange { get; set; }
Property Value
- string
SubText
public string SubText { get; set; }
Property Value
- string
Text
[Bindable(true)]
public string Text { get; set; }
Property Value
- string
public string ToolTip { get; set; }
Property Value
- string
ValidationGroup
public string ValidationGroup { get; set; }
Property Value
- string
Methods
AddInputAttributes(HtmlTextWriter)
protected virtual void AddInputAttributes(HtmlTextWriter writer)
Parameters
writer HtmlTextWriter
AddToolTipAttributes(HtmlTextWriter)
protected void AddToolTipAttributes(HtmlTextWriter writer)
Parameters
writer HtmlTextWriter
protected virtual string GetInputCssClass()
Returns
- string
GetLabelCssClass()
protected virtual string GetLabelCssClass()
Returns
- string
GetPostBackScript()
protected virtual string GetPostBackScript()
Returns
- string
IsChecked(string, NameValueCollection)
protected abstract bool IsChecked(string postDataKey, NameValueCollection postCollection)
Parameters
postDataKey string
postCollection NameValueCollection
Returns
- bool
OnPreRender(EventArgs)
protected override void OnPreRender(EventArgs e)
Parameters
e EventArgs
RenderBlock(HtmlTextWriter, string, string, string)
protected void RenderBlock(HtmlTextWriter writer, string name, string value, string cssClass)
Parameters
writer HtmlTextWriter
name string
value string
cssClass string
RenderInput(HtmlTextWriter, string, string, bool)
protected void RenderInput(HtmlTextWriter writer, string name, string value, bool isStandalone)
Parameters
writer HtmlTextWriter
name string
value string
isStandalone bool
RenderLabel(HtmlTextWriter)
protected void RenderLabel(HtmlTextWriter writer)
Parameters
writer HtmlTextWriter
Events
CheckedChanged
public event EventHandler CheckedChanged
Event Type
- EventHandler