I have a set of user controls that loads dynamically. This codes works fine:
for(int i = 0; i < oObj.Blocks.Count; i++)
UC =(UserControl)LoadControl( Items.getBlock(oObj.Block(i)) );
what I don't ge working is sending in parameters. I've tried:
UC.ObjID = "1234";
Then I get the message: 'System.Web.UI.UserControl' does not contain a definition for 'ObjID'
while the ascx does have the field: public string ObjID = "";