我爱Aspx >> Asp.Net >> 存储过程分页public static string Sql_Parm = @Sql ; // 检索行数
public static string PageSize_Parm = @PageSize ; // 向分页存储过程里传入的 每页显示行数的值
public static string PageCurrent_Parm = @PageCurrent ; // 当前显示的页码
public static string FdShow_Parm = @FdShow ; // 传入返回时要显示的列,用逗号隔开。例:col1,col2
public static string FdOrder_Parm = @FdOrder ; // 排序
public SqlCommand GetCommand()
{
if ( SelectCommand == null )
{
SelectCommand = new SqlCommand( P_Show , new SqlConnection(DbCFG.ConnectionString) ) ;
SelectCommand.CommandType = CommandType.StoredProcedure ;
SelectCommand.Parameters.Add(new SqlParameter(QueryStr_Parm, SqlDbType.NVarChar, 4000 )) ;
SelectCommand.Parameters.Add(new SqlParameter(Sql_Parm, SqlDbType.NVarChar, 4000 )) ;
SelectCommand.Parameters.Add(new SqlParameter(PageSize_Parm , SqlDbType.Int)) ;
SelectCommand.Parameters.Add(new SqlParameter(PageCurrent_Parm , SqlDbType.Int)) ;
}
return SelectCommand ;
}
Ҷƪл˵?
SQL在存储过程中使用递归[05-20]
如何获取 IP 用户名 等信息[05-20]
UTF-8 and Unicode FAQ[05-20]
使用ICallbackEventHandler接口实..[05-20]
不用.net和其组件用asp访问webse..[05-20]
PageTemplate(页模板)[05-20]
ASP.NET 页面对象模型[05-20]
ADO.NET中的多数据表操作之读取[05-20]
ASP.NET里的事务处理[05-20]
ASP.NET中使用Caching[05-20]