title: how do I access object tags in aspx.cs page?
body: <p>I desingned a page with  tags, Now I want to access object tags in code behind. </p>
  
  <p>This is aspx page code....</p>
  
  <pre><code>&lt;object type="label" runat="server" class="System.Web.UI.WebControls.Label" id="label_priority" parent="-1" bindedfield="priority" empty="1" value="MyValue"&gt;
  </code></pre>
  
  <p>Here I am adding <code>runat=server</code> in object tags it is giving error as </p>
  
  <pre><code>"An object tag must contain a Class, ClassID or ProgID attribute."
  </code></pre>
  
  <p>then I added <code>class="System.Web.UI.WebControls.Label"</code>, now not giving any error but not showing anything in browser.</p>
  
  <p>so My question is how do I access object tags in aspx.cs page?
  or 
  I want to create a label with object tag that is accessible in code behind.</p>
  
  <p>Sujeet</p>