T开发者_运维技巧he SqlDataSource.Selected event does not fire when SqlDataSource caching is enabled and the server loads data from cache.
I was using the selected method and SqlDataSourceSelectingEventArgs to sort my data, but it doesnt fire sometimes.
Anyone have any ideas on an alternate way to sort when data comes from cache?
Protected Sub sdsSupplies_Selecting(sender As Object, e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles sdsSupplies.Selecting
e.Arguments.SortExpression = "SortedColumnID ASC"
End Sub
What happens if you intercept the DataBinding event?
精彩评论