Well, I have a page (index.aspx) that has a placeholder in it that I want to use to bind different datagrids to depending on what action the user takes. Essentially to reuse the same page over and over.
I set the "include" up like this:
placeholder.controls.add(loadcontrol("usercontrol. ascx")
*Where usercontrol.ascx holds the creation and binding of a datagrid*
When I do something simple like set the text of a label, it works fine. However, when I try to create a datagrid and then bind it, nothing happens. No error or anything. And when I step through it, it does everything is is supposed to do.
Is there something I am missing with the data binding?
|