[]
Defines the base class for C1 MVC controls.
public abstract class Control : Component, IHtmlContent, ITemplate
| Name | Description |
|---|---|
| Control(IHtmlHelper, string) | Creates one Control instance by using the specified HtmlHelper object and selector. |
| Name | Description |
|---|---|
| CssClass | Gets or sets the css class of the control. |
| CssStyles | Gets the CSS style applied in the control. |
| Height | Gets or sets the height of the control. |
| HtmlAttributes | Gets the HTML attributes. |
| IsDisabled | Gets or sets a value that determines whether the control is disabled. |
| IsTemplate | Gets or sets a boolean value which indicates whether transfer this control to template mode. |
| OnClientGotFocus | Occurs when the control gets the focus. |
| OnClientLostFocus | Occurs when the control loses the focus. |
| OnClientRefreshed | Occurs after the control has refreshed its contents. |
| OnClientRefreshing | Occurs when the control is about to refresh its contents. |
| Selector | Gets or sets the selector to macth the dom element(s) which the control is attached to. |
| TabOrder | Gets or sets a value of the tabindex attribute associated with the control. |
| TagName | Gets the tag name that corresponds to this Web server control. This property is used primarily by control developers. |
| TemplateBindings | Gets the collection of the template bindings. |
| UniqueId | Gets a value which represents the unique id for the control. |
| Width | Gets or sets the width of the control. |
| Name | Description |
|---|---|
| OnPreRender() | This method is performed before rendering. |
| RegisterStartupScript(TextWriter) | Registers the startup scripts. |
| Render(TextWriter, HtmlEncoder) | |
| RenderAttributes(TextWriter) | Renders the html attributes of control. |
| RenderBeginTag(TextWriter) | Renders begin tag of control. |
| RenderContent(TextWriter, HtmlEncoder) | |
| RenderEndTag(TextWriter) | Renders end tag of control. |
| RenderMarkup(TextWriter, HtmlEncoder) | |
| RenderScripts(TextWriter, bool) | Renders the scripts. |