C
Charles A. Lackman
Hello,
I have a user control that is added to a panel on a button click base on
what is inside a dataset. IE
For each Arow in Dataset.Table("Order").Rows
MyControl = LoadControl("OrderControl.ascx")
Page.FindControl("Panel1").Controls.Add(MyControl)
CType(MyControl, OrderControl).ItemID = ARow("ID")
CType(MyControl, OrderControl).Description = ARow("Desc")
CType(MyControl, OrderControl).Department = ARow("Dept")
Next
On the click of a button a new line is added to the dataset and the panel
is refilled with controls (MyControl) (or suposed to). I have to click the
Add Button Twice in order the the control to show up on the page. Any ideas
why this is happening?
Any Suggestions will be greatly appreciated.
Thanks,
Chuck
I have a user control that is added to a panel on a button click base on
what is inside a dataset. IE
For each Arow in Dataset.Table("Order").Rows
MyControl = LoadControl("OrderControl.ascx")
Page.FindControl("Panel1").Controls.Add(MyControl)
CType(MyControl, OrderControl).ItemID = ARow("ID")
CType(MyControl, OrderControl).Description = ARow("Desc")
CType(MyControl, OrderControl).Department = ARow("Dept")
Next
On the click of a button a new line is added to the dataset and the panel
is refilled with controls (MyControl) (or suposed to). I have to click the
Add Button Twice in order the the control to show up on the page. Any ideas
why this is happening?
Any Suggestions will be greatly appreciated.
Thanks,
Chuck