Reuse DataSource with multiple user controls

Discussion in 'ASP .Net' started by Amil Hanish, Aug 21, 2006.

  1. Amil Hanish

    Amil Hanish Guest

    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.

    Thanks.

    Amil
     
    Amil Hanish, Aug 21, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    5
    Views:
    549
    Steve C. Orr [MVP, MCSD]
    May 17, 2005
  2. Greg Ramsey
    Replies:
    0
    Views:
    767
    Greg Ramsey
    Mar 19, 2006
  3. Hylander

    To reuse or not to reuse....

    Hylander, Feb 26, 2004, in forum: Java
    Replies:
    0
    Views:
    427
    Hylander
    Feb 26, 2004
  4. code reuse and design reuse

    , Feb 7, 2006, in forum: C Programming
    Replies:
    16
    Views:
    1,040
    Malcolm
    Feb 12, 2006
  5. jacob navia

    To reuse or not to reuse

    jacob navia, Nov 5, 2006, in forum: C Programming
    Replies:
    19
    Views:
    543
    Dave Thompson
    Dec 18, 2006
Loading...

Share This Page