I know that you can dynamically create a control and then add it to a page, but what if a blank control already exists on the page and you simply want to set this control equal to the return object from a method? Let me explain.....
A CheckBoxList control (called ctl) is dropped onto the .aspx page, so it's visible but not databound or anything
The page_load event calls a method (SomeMethod) that returns a CheckBoxList that's databound and fully populated with data.
Why can't you simply say this:
ctl = (CheckBoxList)SomeMethod();
This doesnt' cause any error (assuming you've casted the object correctly), and I've stepped through my code and I can see that dtl is correcly populated. The problem is that it's not visible on the page once processing is complete. The original ctl control was already a member of the page control collection so I wouldn't think ...
Go to the complete details ...