您当前的位置: 首页 >  c#

暂无认证

  • 0浏览

    0关注

    98368博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[C#]执行存储过程带返回值

发布时间:2020-10-27 07:50:21 ,浏览量:0

存储过程带返回值
SqlParameter[] sp ={new SqlParameter("@pageIndex",1) ,new SqlParameter("@pageSize",10) ,new SqlParameter("@rowCount",0){Direction=ParameterDirection.Output} ,new SqlParameter("@pageCount",0){Direction=ParameterDirection.Output} ,new SqlParameter("@where","")}; DataTable dt = DAL.SqlHelper.GetDataTable(System.Data.CommandType.StoredProcedure, "T_GetPagedData", sp); string rowCount = sp[2].Value.ToString(); string pageCount = sp[3].Value.ToString(); Response.Write("总行数=" + rowCount + "总页数=" + pageCount); 
关注
打赏
1655516835
查看更多评论
立即登录/注册

微信扫码登录

0.0540s