Last post Mar 25, 2011 07:58 PM by diegoadc23
Mar 20, 2011 09:40 AM|diegoadc23|LINK
I'm having trouble, I have a component called Search that has a SearchCars method I use both in the objectdatasource control like this:
my question is what type of object should I return from the SearchCars method?
the method seginature accepts a business entity object "Car"
public ????? SearchCars(Car car)
Mar 22, 2011 10:33 AM|WombatEd|LINK
I usually return a DataTable with columns corresponding to my underlying SQL table, plus or minus a bit of business or UI logic.
Mar 22, 2011 10:42 AM|kratos_Vimal|LINK
What you return depends upon your requirement ?? So to answer your question better ut will be better if
you post your requirement as well
Mar 25, 2011 07:58 PM|diegoadc23|LINK
I Have gathered information and now see that you can return just about anything that the objectdatasource / databound controls will make the object implements the ienumerable interface and display on the page correctly.