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

  • Thread starter Thread starter Charlie@CBFC
  • Start date Start date
C

Charlie@CBFC

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
 
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.
 
I came to same conclusion. Thanks.
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.
 
Back
Top