- Call it in the button click event after in(de)crementing CurrentPage value
- DataTable dtAllProductsView = DB.GetData(@"
- SELECT TOP " + itemsNb + @" *
- FROM
- (SELECT
- ROW_NUMBER() OVER (ORDER BY id) AS RowNumber,
- *
- FROM
- [vwAllProductData]
- WHERE
- [" + promotion + @"] LIKE 'True' AND
- active = 'True'
- ) _rowNbResult
- WHERE
- RowNumber > " + CurrentPage + @" * " + itemsNb);
No comments:
Post a Comment