开发者

How to sort databound control when datasource caching is on

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜