Getting data from child controls loaded programmatically
问题 I've created 2 controls to manipulate a data object: 1 for viewing and another for editing. On one page I load the "view" UserControl and pass data to it this way: ViewControl control = (ViewControl)LoadControl("ViewControl.ascx"); control.dataToView = dataObject; this.container.Controls.Add(control); That's all fine and inside the control I can grab that data and display it. Now I'm trying to follow a similar approach for editing. I have a different User Control for this (with some textboxes