D
dwa
How can a control be added to a table cell within a ascx, so that iteration
over the forms control collection finds the control?
We've got code similar to this (excuse the psuedo-code) in the Page Load of
our the ascx:
// create and initialize a drop down...
DropDownList aDropDown = new DropDownList()
aDropDown.ID = "foo";
aDropDown.Attributes.Add("runat", "server");
etc...
// position the drop down in a table cell....
tableCell = this.FindControl( "tableCellID" );
tableCell.Controls.Add( aDropDown );
Later on, within the scope of the page load, we iterate over the controls on
the form, but we never see our "foo" drop down list.
Any clues?
-- dwa
over the forms control collection finds the control?
We've got code similar to this (excuse the psuedo-code) in the Page Load of
our the ascx:
// create and initialize a drop down...
DropDownList aDropDown = new DropDownList()
aDropDown.ID = "foo";
aDropDown.Attributes.Add("runat", "server");
etc...
// position the drop down in a table cell....
tableCell = this.FindControl( "tableCellID" );
tableCell.Controls.Add( aDropDown );
Later on, within the scope of the page load, we iterate over the controls on
the form, but we never see our "foo" drop down list.
Any clues?
-- dwa