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. Advertising

  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. Advertising

  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. 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. JJ
    Replies:
    2
    Views:
    2,148
  2. KDawg44
    Replies:
    1
    Views:
    327
    Joshua Cranmer
    Oct 14, 2007
  3. mohit
    Replies:
    0
    Views:
    552
    mohit
    Jan 23, 2008
  4. news.eternal-september.org
    Replies:
    0
    Views:
    592
    news.eternal-september.org
    Feb 2, 2010
  5. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    242
    Steven Cheng[MSFT]
    Mar 23, 2006
Loading...

Share This Page