ObjectDataSource method as another ObjectDataSource

D

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?
 
S

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.
 
D

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.
 
S

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top