|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ObjectDataSource method as another ObjectDataSourceHi;
I have an ObjectDataSource and one of it's methods returns a collection that I want to use as a second ObjectDataSource. Is there a way to do this? Hi Dave,
IMO, this is not quite a case supported in ASP.NET 2.0 databinding model. As for the ASP.NET 2.0 databinding model, it utilize the datasource control(which expose some standard set of interfaces to communicate with databound controls). However, those datasource controls should be existing in the page's control hierarchy(predefined in page template or dynamicall added into the control collectioni) rather than be returned by a certain control's method. BTW, would you provide the detailed background info about the scenario, maybe we can look for some other approaches to achieve it. Regards, Steven Cheng Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Hi;
That's what I figured but it never hurts to ask. I have it working now as two distinct calls to return two collections and it works fine. Show quoteHide quote "Steven Cheng[MSFT]" wrote: > Hi Dave, > > IMO, this is not quite a case supported in ASP.NET 2.0 databinding model. > As for the ASP.NET 2.0 databinding model, it utilize the datasource > control(which expose some standard set of interfaces to communicate with > databound controls). However, those datasource controls should be existing > in the page's control hierarchy(predefined in page template or dynamicall > added into the control collectioni) rather than be returned by a certain > control's method. > > BTW, would you provide the detailed background info about the scenario, > maybe we can look for some other approaches to achieve it. > > Regards, > > Steven Cheng > Microsoft Online Community Support > > > ================================================== > > When responding to posts, please "Reply to Group" via your newsreader so > that others may learn and benefit from your issue. > > ================================================== > > > This posting is provided "AS IS" with no warranties, and confers no rights. > > That¡¯s fine. Thanks for the followup.
Regards, Steven Cheng Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Major problem with FileUpload if bad filename
FormView - FindControl only works for default view Bind data to control inside a Repeater Master/Details cloning a record? Refreshing TreeView CrossPage Posting and the How Do I Webcast put control in a repeater cell from code behind repeater control - change the background color depending on a value Problem with DropDownList FileUpload name goes away |
|||||||||||||||||||||||