Hi All,
Within a custom control, I am adding a sub-control to a placeholder. Everything runs, but nothing shows up and no postback is triggered on the page. I've never dynamically added controls before, so I'm probably doing something simple wrong. Ideas? The code I'm using is below for reference.
Thanks.
myControl = new CustomControls_rowEventControl();
myControl.initialize();
myControl.Inputs = inList;
plcTable.Controls.Add(myControl);PlcTable is the placeholder. MyControl.Initialize was included because when I assigned inList (which assigns values to the labels) the labels within the control were all null, and would give a runtime error. The code for the initialize function is:
public void initialize()
{
lblMonday = new Label();
lblTuesday = new Label();
lblWednesday = new Label();
lblThursd ...
Go to the complete details ...