Setting up ObjectDataSource Control when target method takes object as a parameter...

Discussion in 'ASP .Net' started by Charlie@CBFC, Sep 12, 2006.

  1. Charlie@CBFC

    Charlie@CBFC Guest

    Hi:

    I'm using the ObjectDataSource control to databind a Repeater. The method
    on business object that ObjectDataSource control point to takes as a
    parameter an instance of the System.Data.CommandType enumeration. When
    setting up declaritively in HTML, how do I complete the following parameter
    assignment...

    <asp:parameter Name="commandType" Type="Object" DefaultValue="????" />

    Thanks,
    Charlie
     
    Charlie@CBFC, Sep 12, 2006
    #1
    1. Advertisements

  2. Charlie@CBFC

    Guest

    I'm pretty sure you'd need to set it programmatically rather than
    declaritavely. You can set it in the page load if you want, or you can
    set it in the Selecting event of the ObjectDataSource.

    Charlie@CBFC wrote:
    > Hi:
    >
    > I'm using the ObjectDataSource control to databind a Repeater. The method
    > on business object that ObjectDataSource control point to takes as a
    > parameter an instance of the System.Data.CommandType enumeration. When
    > setting up declaritively in HTML, how do I complete the following parameter
    > assignment...
    >
    > <asp:parameter Name="commandType" Type="Object" DefaultValue="????" />
    >
    > Thanks,
    > Charlie
     
    , Sep 12, 2006
    #2
    1. Advertisements

  3. Charlie@CBFC

    Charlie@CBFC Guest

    I came to same conclusion. Thanks.
    <> wrote in message
    news:...
    > I'm pretty sure you'd need to set it programmatically rather than
    > declaritavely. You can set it in the page load if you want, or you can
    > set it in the Selecting event of the ObjectDataSource.
    >
    > Charlie@CBFC wrote:
    >> Hi:
    >>
    >> I'm using the ObjectDataSource control to databind a Repeater. The
    >> method
    >> on business object that ObjectDataSource control point to takes as a
    >> parameter an instance of the System.Data.CommandType enumeration. When
    >> setting up declaritively in HTML, how do I complete the following
    >> parameter
    >> assignment...
    >>
    >> <asp:parameter Name="commandType" Type="Object" DefaultValue="????" />
    >>
    >> Thanks,
    >> Charlie

    >
     
    Charlie@CBFC, Sep 12, 2006
    #3
    1. Advertisements

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. Kha Tran
    Replies:
    3
    Views:
    9,001
  2. JJ
    Replies:
    2
    Views:
    2,374
  3. KDawg44
    Replies:
    1
    Views:
    393
    Joshua Cranmer
    Oct 14, 2007
  4. mohit
    Replies:
    0
    Views:
    789
    mohit
    Jan 23, 2008
  5. news.eternal-september.org
    Replies:
    0
    Views:
    683
    news.eternal-september.org
    Feb 2, 2010
  6. RenatoGuarilha
    Replies:
    0
    Views:
    315
    RenatoGuarilha
    Dec 21, 2005
  7. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    416
    Steven Cheng[MSFT]
    Mar 23, 2006
  8. Elf M. Sternberg
    Replies:
    15
    Views:
    483
    Matthias Reitinger
    Jul 29, 2009
Loading...