can a dg be added to an ascx? ascx call a ws?

Discussion in 'ASP .Net' started by Jason Shohet, Nov 10, 2003.

  1. Jason Shohet

    Jason Shohet Guest

    We have some db-search functionality that we need in several asp.net apps.
    How to get reuse out of this...
    I was thinking of putting the search criteria, and the datagrid that
    displays the results, in an ascx control that can be plopped down in any of
    our apps.

    1. I'm just not sure about putting a datagrid in an ascx -- any minuses to
    doing this?

    2. Can an ascx can call a web service (thats where we put our ADO stuff --
    where I would retrieve the ds and send it back to be put in the datagrid).
    I recall trying to do this once a year ago, and it couldn't call a
    service...

    Thanks
    Jason Shohet
     
    Jason Shohet, Nov 10, 2003
    #1
    1. Advertising

  2. > 1. I'm just not sure about putting a datagrid in an ascx -- any minuses
    to
    > doing this?


    None whatsoever.

    > 2. Can an ascx can call a web service (thats where we put our ADO

    stuff --
    > where I would retrieve the ds and send it back to be put in the datagrid).
    > I recall trying to do this once a year ago, and it couldn't call a
    > service...


    Sure can.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    Big Things are made up of
    Lots of Little Things.

    " Jason Shohet" <> wrote in message
    news:...
    > We have some db-search functionality that we need in several asp.net apps.
    > How to get reuse out of this...
    > I was thinking of putting the search criteria, and the datagrid that
    > displays the results, in an ascx control that can be plopped down in any

    of
    > our apps.
    >
    > 1. I'm just not sure about putting a datagrid in an ascx -- any minuses

    to
    > doing this?
    >
    > 2. Can an ascx can call a web service (thats where we put our ADO

    stuff --
    > where I would retrieve the ds and send it back to be put in the datagrid).
    > I recall trying to do this once a year ago, and it couldn't call a
    > service...
    >
    > Thanks
    > Jason Shohet
    >
    >
     
    Kevin Spencer, Nov 10, 2003
    #2
    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. Quentin
    Replies:
    1
    Views:
    508
    Quentin
    Jul 29, 2003
  2. Holger (David) Wagner
    Replies:
    2
    Views:
    1,968
    Holger (David) Wagner
    Jul 3, 2004
  3. Bennett Haselton
    Replies:
    1
    Views:
    540
    John M Deal
    Nov 8, 2004
  4. Joe
    Replies:
    1
    Views:
    396
    Jeffrey Tan[MSFT]
    Feb 16, 2004
  5. Replies:
    2
    Views:
    553
Loading...

Share This Page