I created a page with tags, Now I want to access the tags of the objects in the code behind.
This is the aspx page code ....
<object type="label" runat="server" class="System.Web.UI.WebControls.Label" id="label_priority" parent="-1" bindedfield="priority" empty="1" value="MyValue">
Here I add runat=server in the object tags, which gives an error like
"An object tag must contain a Class, ClassID or ProgID attribute."
then I added class="System.Web.UI.WebControls.Label" , now not displaying any errors, but not displaying anything in the browser.
so my question is: how to access object tags on aspx.cs page? or I want to create a shortcut with an object tag available in the code.
Sujeet
source share