[]
Defines the base class for C1 MVC controls.
public abstract class Control : Component, IHtmlString, ITemplate
Name | Description |
---|---|
Control(HtmlHelper, 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. |
TagKey | Gets the System.Web.UI.HtmlTextWriterTag value 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(HtmlTextWriter) | Registers the startup scripts. |
Render(HtmlTextWriter) | Renders the control or the callback result to the writer. |
RenderAttributes(HtmlTextWriter) | Renders the html attributes of control. |
RenderBeginTag(HtmlTextWriter) | Renders begin tag of control. |
RenderContent(HtmlTextWriter) | Renders content of control. |
RenderEndTag(HtmlTextWriter) | Renders end tag of control. |
RenderMarkup(HtmlTextWriter) | Renders the control markup. |
RenderScripts(HtmlTextWriter, bool) | Renders the scripts. |