title: Object Instance in C#
body: <p>Why do I get "Object Reference Not Set to Instance of an Object"</p>
  
  <pre><code>protected void GetData()
  {
      ...
  
      id = this.GetTabControl().ID; //&lt;---------here
  }
  
  ...
  
  protected ASPxPageControl GetTabControl()
  {
      return (ASPxPageControl)this.FindControl("DetailTab");
  }
  </code></pre>
  
  <p>---------I assume the FindControl is not working.</p>