I use several ObjectDataSources to populate ComboBox fields in a FormView. FormView is kind of generic because its appearance differs depending on its category.
The category is defined in the URL of the web page. I would like to create a class that filters a category and exposes several properties that can be used to populate ComboBox fields.
The problem is that the ObjectDataSource object by default received the SelectMethod property for retrieving data. With this class that I would like to create, these would not be methods, but properties that will contain data.
Perhaps it is somehow possible to assign the property "SelectMethod" (or similar)? Is it better to use a different approach?
Thank.
source
share