I'm trying to use an ObjectDataSource to populate a DropDownList. The code for the ods is:
<asp:ObjectDataSource ID="odsStates" runat="server" SelectMethod="GetMultiAsDataTable" TypeName="xxx.xxx.xxx.CollectionClasses.StateCollection">
<SelectParameters>
<asp:Parameter DefaultValue="null" Name="selectFilter" Type="Object" />
<asp:Parameter DefaultValue="0" Name="maxNumberOfItemsToReturn" Type="Int64" />
<asp:Parameter DefaultValue="null" Name="sortClauses" Type="Object" />
</SelectParameters>
</asp:ObjectDataSource>
Is there anything I can put in the DefaultValue of the sortClauses parameter to sort by StateName? Also, is there any way to create a filter, e.g. StateID <> 99?
I tried the LLBLGenProDataSource as well and there's nothing obvious in that control to do what I want to do.
Thanks.
Laurie