M
Mark Baldwin
I have a web page with various controls that supply parameters to an
ObjectDataSource. The ObjectDataSource has various methods that allow for
filtering of the results...GetProductsByID(), GetProductsByIDAndDate()...etc
Because the parameters are optional, I have to make a methods that take all
variantions of these parameters, so if I have 3 parameters, I need 7
methods, I then have to write code to call the correct method depending on
which parameters have been selected.
I am just wondering if there is an easier way to do this - maybe have one
method with all parameters and then let the ObjectDataSource determine the
parameters on the query?
ObjectDataSource. The ObjectDataSource has various methods that allow for
filtering of the results...GetProductsByID(), GetProductsByIDAndDate()...etc
Because the parameters are optional, I have to make a methods that take all
variantions of these parameters, so if I have 3 parameters, I need 7
methods, I then have to write code to call the correct method depending on
which parameters have been selected.
I am just wondering if there is an easier way to do this - maybe have one
method with all parameters and then let the ObjectDataSource determine the
parameters on the query?