title: How to access asp controls in a class file
body: <p>I have created a panel in my page view (tour.aspx file).
  Now I want to access it in my class file (add_tour.cs file).</p>
  
  <p>This is my panel:</p>
  
  <pre><code>&lt;asp:Panel ID="itinerary_panel" runat="server"&gt;&lt;/asp:Panel&gt;
  </code></pre>
  
  <p>This is my code behind <code>tour.aspx</code> file:</p>
  
  <pre><code>add_tour tour_obj = new add_tour();
  int days_count = 2;
  tour_obj.textbox_generator(days_count);
  </code></pre>
  
  <p>And this code is in <code>add_tour.cs</code> file:</p>
  
  <pre><code>public void textbox_generator(int days_count)
  {
  
  }
  </code></pre>
  
  <p>Now how to access the panel from aspx file?
  Please help.</p>