P
Paul
Hi,
I have a composite control(TextBoxControl.cs) in my
DynamicTextBox.aspx. On the Page_Load of the
DynamicTextBox.aspx page, I am calling a business tier
assembly, which is returning an ArrayList containing an
unknown amount of objects. I would like to pass this
ArrayList to my composite control and for each object in
the ArrayList, I would like to build and populate a
TextBox. The reason I need to pass the data to the
composite control is because I would like to reuse this
control on multiple pages in the application.
Currently, I am able to get the data from the business
tier assembly directly from the composite control's
CreateChildControls() method, and create the Textboxes.
The problem I am having is passing the data from the
Page_Load event of the parent DynamicTextBox.aspx and
having the controls show up on the page. The data gets to
the control's CreateChildControls() event and I watch it
in Debug go through and create the controls, but when the
page renders, the controls are not there. What gives? I
tried passing the data from the DynamicTextBox.aspx
page's On_Init, but the same result as Page_Load occured.
Does anyone know why the TextBoxes are not rendering or
have any insight as to what I am doing wrong?
Thanks in advance for your time and help,
Paul
I have a composite control(TextBoxControl.cs) in my
DynamicTextBox.aspx. On the Page_Load of the
DynamicTextBox.aspx page, I am calling a business tier
assembly, which is returning an ArrayList containing an
unknown amount of objects. I would like to pass this
ArrayList to my composite control and for each object in
the ArrayList, I would like to build and populate a
TextBox. The reason I need to pass the data to the
composite control is because I would like to reuse this
control on multiple pages in the application.
Currently, I am able to get the data from the business
tier assembly directly from the composite control's
CreateChildControls() method, and create the Textboxes.
The problem I am having is passing the data from the
Page_Load event of the parent DynamicTextBox.aspx and
having the controls show up on the page. The data gets to
the control's CreateChildControls() event and I watch it
in Debug go through and create the controls, but when the
page renders, the controls are not there. What gives? I
tried passing the data from the DynamicTextBox.aspx
page's On_Init, but the same result as Page_Load occured.
Does anyone know why the TextBoxes are not rendering or
have any insight as to what I am doing wrong?
Thanks in advance for your time and help,
Paul