日期:2014-05-17 浏览次数:20465 次
SELECT *FROM (SELECT CustomID, Name, OpenDate, BankNum, ProductID, AccountType, TelePhone, Email, Reamark, Row_Number() OVER(ORDER BY CustomID) rownum FROM dbo.V_Custom) t WHERE t .rownum > @startRowIndex AND t .rownum <= @startRowIndex + @maximumRows
SELECT COUNT(*) FROM Custom
<asp:ObjectDataSource ID="Obscustom" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetPageData" TypeName="XTWeb.DAL.DataSetCustomTableAdapters.CustomTableAdapter" EnablePaging="True" SelectCountMethod="QueryCount" > </asp:ObjectDataSource>