By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,582 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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 '06 #2

P: n/a
I came to same conclusion. Thanks.
<mi*******@hotmail.comwrote in message
news:11*********************@d34g2000cwd.googlegro ups.com...
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 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.