# C1.Web.Mvc.Control

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Control" data-uid="C1.Web.Mvc.Control" class="text-break">Control Class
</h1>
  <div class="markdown level0 summary"><p>Defines the base class for C1 MVC controls.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><span class="xref">Control</span></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.Accordion.html">Accordion</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.BarcodeBase.html">BarcodeBase</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.CollectionViewNavigator.html">CollectionViewNavigator</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.DashboardLayout.html">DashboardLayout</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.FileManager.html">FileManager</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.FlexGridSearch.html">FlexGridSearch</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.Gauge.html">Gauge</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.InputBase.html">InputBase</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.ItemsBoundControl-1.html">ItemsBoundControl&lt;T&gt;</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.Pager.html">Pager</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.Popup.html">Popup</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.TabPanel.html">TabPanel</a></div>
      <div class="level3"><a class="xref" href="C1.Web.Mvc.TreeView.html">TreeView</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Control_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class Control : Component, IHtmlContent, ITemplate</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class Control
    Inherits Component
    Implements IHtmlContent, ITemplate</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Control__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.Control.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.Control.-ctor.html#C1_Web_Mvc_Control__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_">Control(IHtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Control.html">Control</a> instance
by using the specified HtmlHelper object and selector.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Control_CssClass" data-uid="C1.Web.Mvc.Control.CssClass">
          <a class="xref" href="C1.Web.Mvc.Control.CssClass.html#C1_Web_Mvc_Control_CssClass">CssClass</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the css class of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_CssStyles" data-uid="C1.Web.Mvc.Control.CssStyles">
          <a class="xref" href="C1.Web.Mvc.Control.CssStyles.html#C1_Web_Mvc_Control_CssStyles">CssStyles</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the CSS style applied in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_Height" data-uid="C1.Web.Mvc.Control.Height">
          <a class="xref" href="C1.Web.Mvc.Control.Height.html#C1_Web_Mvc_Control_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_HtmlAttributes" data-uid="C1.Web.Mvc.Control.HtmlAttributes">
          <a class="xref" href="C1.Web.Mvc.Control.HtmlAttributes.html#C1_Web_Mvc_Control_HtmlAttributes">HtmlAttributes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the HTML attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_IsDisabled" data-uid="C1.Web.Mvc.Control.IsDisabled">
          <a class="xref" href="C1.Web.Mvc.Control.IsDisabled.html#C1_Web_Mvc_Control_IsDisabled">IsDisabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the control is disabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_IsTemplate" data-uid="C1.Web.Mvc.Control.IsTemplate">
          <a class="xref" href="C1.Web.Mvc.Control.IsTemplate.html#C1_Web_Mvc_Control_IsTemplate">IsTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a boolean value which indicates whether transfer this control to template mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_OnClientGotFocus" data-uid="C1.Web.Mvc.Control.OnClientGotFocus">
          <a class="xref" href="C1.Web.Mvc.Control.OnClientGotFocus.html#C1_Web_Mvc_Control_OnClientGotFocus">OnClientGotFocus</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the control gets the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_OnClientLostFocus" data-uid="C1.Web.Mvc.Control.OnClientLostFocus">
          <a class="xref" href="C1.Web.Mvc.Control.OnClientLostFocus.html#C1_Web_Mvc_Control_OnClientLostFocus">OnClientLostFocus</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the control loses the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_OnClientRefreshed" data-uid="C1.Web.Mvc.Control.OnClientRefreshed">
          <a class="xref" href="C1.Web.Mvc.Control.OnClientRefreshed.html#C1_Web_Mvc_Control_OnClientRefreshed">OnClientRefreshed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the control has refreshed its contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_OnClientRefreshing" data-uid="C1.Web.Mvc.Control.OnClientRefreshing">
          <a class="xref" href="C1.Web.Mvc.Control.OnClientRefreshing.html#C1_Web_Mvc_Control_OnClientRefreshing">OnClientRefreshing</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the control is about to refresh its contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_Selector" data-uid="C1.Web.Mvc.Control.Selector">
          <a class="xref" href="C1.Web.Mvc.Control.Selector.html#C1_Web_Mvc_Control_Selector">Selector</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the selector to macth the dom element(s) which the control is attached to.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_TabOrder" data-uid="C1.Web.Mvc.Control.TabOrder">
          <a class="xref" href="C1.Web.Mvc.Control.TabOrder.html#C1_Web_Mvc_Control_TabOrder">TabOrder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of the tabindex attribute associated with the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_TagName" data-uid="C1.Web.Mvc.Control.TagName">
          <a class="xref" href="C1.Web.Mvc.Control.TagName.html#C1_Web_Mvc_Control_TagName">TagName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the tag name that corresponds to this Web
server control. This property is used primarily by control developers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_TemplateBindings" data-uid="C1.Web.Mvc.Control.TemplateBindings">
          <a class="xref" href="C1.Web.Mvc.Control.TemplateBindings.html#C1_Web_Mvc_Control_TemplateBindings">TemplateBindings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of the template bindings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_UniqueId" data-uid="C1.Web.Mvc.Control.UniqueId">
          <a class="xref" href="C1.Web.Mvc.Control.UniqueId.html#C1_Web_Mvc_Control_UniqueId">UniqueId</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value which represents the unique id for the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_Width" data-uid="C1.Web.Mvc.Control.Width">
          <a class="xref" href="C1.Web.Mvc.Control.Width.html#C1_Web_Mvc_Control_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Control_OnPreRender" data-uid="C1.Web.Mvc.Control.OnPreRender">
          <a class="xref" href="C1.Web.Mvc.Control.OnPreRender.html#C1_Web_Mvc_Control_OnPreRender">OnPreRender()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is performed before rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RegisterStartupScript_System_IO_TextWriter_" data-uid="C1.Web.Mvc.Control.RegisterStartupScript(System.IO.TextWriter)">
          <a class="xref" href="C1.Web.Mvc.Control.RegisterStartupScript.html#C1_Web_Mvc_Control_RegisterStartupScript_System_IO_TextWriter_">RegisterStartupScript(TextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Registers the startup scripts.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_Render_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_" data-uid="C1.Web.Mvc.Control.Render(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)">
          <a class="xref" href="C1.Web.Mvc.Control.Render.html#C1_Web_Mvc_Control_Render_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_">Render(TextWriter, HtmlEncoder)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RenderAttributes_System_IO_TextWriter_" data-uid="C1.Web.Mvc.Control.RenderAttributes(System.IO.TextWriter)">
          <a class="xref" href="C1.Web.Mvc.Control.RenderAttributes.html#C1_Web_Mvc_Control_RenderAttributes_System_IO_TextWriter_">RenderAttributes(TextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the html attributes of control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RenderBeginTag_System_IO_TextWriter_" data-uid="C1.Web.Mvc.Control.RenderBeginTag(System.IO.TextWriter)">
          <a class="xref" href="C1.Web.Mvc.Control.RenderBeginTag.html#C1_Web_Mvc_Control_RenderBeginTag_System_IO_TextWriter_">RenderBeginTag(TextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders begin tag of control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RenderContent_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_" data-uid="C1.Web.Mvc.Control.RenderContent(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)">
          <a class="xref" href="C1.Web.Mvc.Control.RenderContent.html#C1_Web_Mvc_Control_RenderContent_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_">RenderContent(TextWriter, HtmlEncoder)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RenderEndTag_System_IO_TextWriter_" data-uid="C1.Web.Mvc.Control.RenderEndTag(System.IO.TextWriter)">
          <a class="xref" href="C1.Web.Mvc.Control.RenderEndTag.html#C1_Web_Mvc_Control_RenderEndTag_System_IO_TextWriter_">RenderEndTag(TextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders end tag of control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RenderMarkup_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_" data-uid="C1.Web.Mvc.Control.RenderMarkup(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)">
          <a class="xref" href="C1.Web.Mvc.Control.RenderMarkup.html#C1_Web_Mvc_Control_RenderMarkup_System_IO_TextWriter_System_Text_Encodings_Web_HtmlEncoder_">RenderMarkup(TextWriter, HtmlEncoder)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Control_RenderScripts_System_IO_TextWriter_System_Boolean_" data-uid="C1.Web.Mvc.Control.RenderScripts(System.IO.TextWriter,System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Control.RenderScripts.html#C1_Web_Mvc_Control_RenderScripts_System_IO_TextWriter_System_Boolean_">RenderScripts(TextWriter, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the scripts.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
