# FarPoint.Web.Spread.FpSpread.FindControl

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_FpSpread_FindControl_" data-uid="FarPoint.Web.Spread.FpSpread.FindControl*">FindControl Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_FpSpread_FindControl_" data-uid="FarPoint.Web.Spread.FpSpread.FindControl*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_FindControl_System_Web_UI_Control_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.FindControl(System.Web.UI.Control,System.String)">FindControl(Control, string)</h4>
<div class="markdown level1 summary"><p>Finds the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Control FindControl(Control control, string controlID)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FindControl(control As Control, controlID As String) As Control</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.control">Control</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>Control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">controlID</span></td>
      <td><p>Unique identifier of the control</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.control">Control</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_FindControl_" data-uid="FarPoint.Web.Spread.FpSpread.FindControl*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_FindControl_System_String_System_Int32_" data-uid="FarPoint.Web.Spread.FpSpread.FindControl(System.String,System.Int32)">FindControl(string, int)</h4>
<div class="markdown level1 summary"><p>Searches the current naming container for a server control with the specified
id and integer, specified in the pathOffset parameter, which aids in the
search. You should not override this version of the Overload:System.Web.UI.Control.FindControl
method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override Control FindControl(string id, int pathOffset)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function FindControl(id As String, pathOffset As Integer) As Control</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">id</span></td>
      <td><p>The identifier for the control to be found.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pathOffset</span></td>
      <td><p>The number of controls up the page control hierarchy needed to reach a naming container.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.control">Control</a></td>
      <td><p>The specified control, or null if the specified control does not exist.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.control.findcontrol#system-web-ui-control-findcontrol(system-string-system-int32)">Control.FindControl(string, int)</a></div>
</div>
