0

I'm creating instances of various controls at runtime in the Page_Load method of another control. The dynamically generated controls are then added to a Placeholder.

From inside the dynamically generated controls (in their own Page_Load method) I am trying to set the values of various Literals, but they are all null.

Can anyone shed some light on why I can't access these Literals?

Thanks Ryan

Ryan
  • 4,671
  • 4
  • 23
  • 21

1 Answers1

0

Sorted. Need to use the LoadControl() method..

I was trying to created an instace of the control instead.

Ryan
  • 4,671
  • 4
  • 23
  • 21