Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Reuse DataSource with multiple user controls

Thread Tools

Reuse DataSource with multiple user controls

Amil Hanish
Posts: n/a
Can I reuse the same DataSource on a page? I have two user controls that
need the data from a DataSource; can I reuse a DataSource for both controls?

What would be a good way to allow my user controls access to the page's
DataSource? I could encapsulate the entire DataSource in the user control,
but I don't want to re-read the source for both controls...or even more than
two user controls.



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
To reuse or not to reuse jacob navia C Programming 19 12-18-2006 07:22 AM
reuse gridview after changing data datasource parameters Greg Ramsey ASP .Net 0 03-19-2006 06:58 PM
code reuse and design reuse C Programming 16 02-12-2006 09:09 PM
Reuse paramter list and reuse connection tshad ASP .Net 5 05-17-2005 12:33 AM
To reuse or not to reuse.... Hylander Java 0 02-26-2004 12:00 AM