Home All Groups Group Topic Archive Search About

ObjectDataSource method as another ObjectDataSource

Author
21 Mar 2006 6:43 PM
David Thielen
Hi;

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?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Author
22 Mar 2006 6:18 AM
Steven Cheng[MSFT]
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.
Author
22 Mar 2006 2:15 PM
David Thielen
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.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



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.
>
>
Author
23 Mar 2006 1:50 AM
Steven Cheng[MSFT]
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.