tilføje usercontrols til panel
tilføjer usercontrols til min side sådan:UserControl uc = new UserControl();
uc= (UserControl)LoadControl("xxx.ascx");
uc.Visible=false;
uc.ID="TestX";
pnlUserControl.Controls.Add(uc);
i en buttonclick prøver jeg at fange dem sådan:
pnlUserControl.FindControl("TestX").Visible=true;
men i min buttonclick får jeg en obj refrence fejl
hvorfor?
