One ObjectDataSource for two ASP.NET controls
Does anyone know how many trips t开发者_如何学Pythono the database will be made on Select if I use one ObjectDataSource for two ASP.NET controls?
Two trips http://forums.asp.net/t/1449289.aspx
you can cach the data http://www.asp.net/data-access/tutorials/caching-data-with-the-objectdatasource-vb
or make a call to the object
List<T> foo = yourObject.GetSource();
control1.DataSource = foo;
control2.DataSource = foo;
精彩评论