Loop through all dataadapters

Discussion in 'ASP .Net' started by Vik, Jul 16, 2003.

  1. Vik

    Vik Guest

    Is it possible to loop through all dataadapters on page?

    Thanks
     
    Vik, Jul 16, 2003
    #1
    1. Advertising

  2. If you drop them onto your form at design time then it may be possible to
    loop through the controls collection and then work with each control where
    the TypeOf var Is System.Data.SQLClient.DataAdapter.
    If you create them at runtime then they wouldn't be in the controls
    collection. Instead you'd have to add them to a collection of your own and
    then loop through that.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net


    "Vik" <viktorum@==yahoo.com==> wrote in message
    news:...
    > Is it possible to loop through all dataadapters on page?
    >
    > Thanks
    >
    >
     
    Steve C. Orr, MCSD, Jul 16, 2003
    #2
    1. Advertising

  3. Vik

    Vik Guest

    Thanks.

    Which controls collection contains the dataadapters added at design time? It
    seems the dataadapters are not a part of a page's controls.

    Vik

    "Steve C. Orr, MCSD" <> wrote in message
    news:...
    > If you drop them onto your form at design time then it may be possible to
    > loop through the controls collection and then work with each control where
    > the TypeOf var Is System.Data.SQLClient.DataAdapter.
    > If you create them at runtime then they wouldn't be in the controls
    > collection. Instead you'd have to add them to a collection of your own

    and
    > then loop through that.
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > http://Steve.Orr.net
    >
    >
    > "Vik" <viktorum@==yahoo.com==> wrote in message
    > news:...
    > > Is it possible to loop through all dataadapters on page?
    > >
    > > Thanks
    > >
    > >

    >
    >
     
    Vik, Jul 17, 2003
    #3
    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. Jon Maz
    Replies:
    4
    Views:
    418
    Jon Maz
    May 27, 2004
  2. =?Utf-8?B?Sko=?=

    Sql DataAdapters

    =?Utf-8?B?Sko=?=, Jul 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    517
    =?Utf-8?B?Sko=?=
    Jul 5, 2005
  3. Tina
    Replies:
    0
    Views:
    366
  4. Replies:
    0
    Views:
    433
  5. Isaac Won
    Replies:
    9
    Views:
    451
    Ulrich Eckhardt
    Mar 4, 2013
Loading...

Share This Page