Dynamically loading user control is ok, it works great, but I can't pass a parameter to user control, it gives me
CS0117: 'System.Web.UI.Control' does not contain a definition for 'nameFile'
error
here is the code;
//STage'i oluŝtur
Control TemplateStage = LoadControl("../ucx/Template.Stage.SWFObject.ascx");
Controls.Add(TemplateStage);
TemplateStage.nameFile = itemString;
stageContent.Controls.Add(TemplateStage);
stageContent.Visible=true;