title: How to get Div Row ID in Code Behind?
body: <p>I would like to ask how do I get this control at code behind. I know it can be done at client side. I tried but get an error:</p>
  
  <blockquote>
    <p>"Object reference not set to an instance of an object."</p>
  </blockquote>
  
  <p>What is the correct method to get it? If it is textbox, I just declare textbox. But this is div class. </p>
  
  <p>Code Behind</p>
  
  <pre><code> TableRow trStatusB = fvAddOn.FindControl("EditProductNameRow") as TableRow;
  </code></pre>
  
  <p>Client Side</p>
  
  <pre><code> &lt;div class="Row" id="EditNameRow" runat="server"&gt; 
  &lt;/div&gt;
  </code></pre>