P
Peter Rilling
Okay, I something weird is happening where I do not know if I am doing
something wrong.
I have a page that contains a custom webcontrol that I developed. This
webcontrol basically loads a UserControl (ascx) using the LoadControl method
and writing it out to the browser.
Page --> custom webcontrol --> usercontrol (via LoadControl) --> stream to
browser.
On the usercontrol, I am using an ObjectDataSource where I have some methods
and objects that this datasource uses. When I view the page based on the
above scenario nothing appears.
However, when I take the above usercontrol and place it directly on a page.
The contents renders fine. My "select" method is being invoked and
everything.
The only difference between the two ways is that the first way uses a
webcontrol as an intermediary which dynamically loads the usercontrol.
Would that cause problems with the use of the ObjectDataSource?
something wrong.
I have a page that contains a custom webcontrol that I developed. This
webcontrol basically loads a UserControl (ascx) using the LoadControl method
and writing it out to the browser.
Page --> custom webcontrol --> usercontrol (via LoadControl) --> stream to
browser.
On the usercontrol, I am using an ObjectDataSource where I have some methods
and objects that this datasource uses. When I view the page based on the
above scenario nothing appears.
However, when I take the above usercontrol and place it directly on a page.
The contents renders fine. My "select" method is being invoked and
everything.
The only difference between the two ways is that the first way uses a
webcontrol as an intermediary which dynamically loads the usercontrol.
Would that cause problems with the use of the ObjectDataSource?