PDA

View Full Version : ObjectDataSource usage


edzillion
09-17-2009, 05:08 PM
I am trying to change someone elses code.
At the moment there is an ObjectDataSource that shows all records from a certain database table. I want to add a dropdown menu which, when selected will filter this ObjectDataSource into certain groups. These groups are based on cross referencing against another table in the same dbase.

How would I go about doing this? the UpdateMethod or the onupdating function in the associated c# page.

confused....

Old Pedant
09-17-2009, 06:54 PM
Well, first of all, this is an ASP.NET question in the ASP forum.

But secondly, I'm not clear at all as to why you are using an Object data source instead of a SQL data source, expecially if you are talking about joining to another table and filtering records from the joined set, etc., etc. I think *ALL* of that should be done in a SQL query, *NOT* in some in-memory structure that will be eating up time and space.

But I could well be wrong, since you are so sparse with the details.