GV_WorkVote.DataSource = bll.GetAllWorksVoteByWorksID("", 0, 1, 1,pageCount);
  pageCount 是输出参数 怎么接受``

解决方案 »

  1.   

    pageCount是你需要分页 获取的总页数,查询出你所有的数据,然后除你的pagesize就行了
      

  2.   

    方法(out int a)对应你的输出参数。
    你那个方法里要
    a=(int) parameters[位置].value
      

  3.   

    GetAllWorksVoteByWorksID("", 0, 1, 1,pageCount);
    你需要把上面这个方法 中 pagecount 定义为 out
    在方法里面
     pagecount=(int) parament[位置].value在调用GetAllWorksVoteByWorksID方法时。
    定义个int a;
    GetAllWorksVoteByWorksID("", 0, 1, 1,out a);
      

  4.   

    可以在UI层定义一个Pagecount=0,然后在bll给pagecount赋值就可以了。
      

  5.   

    方法GetAllWorksVoteByWorksID(string a,int b , int c, out int,pageCount);                        parameters[0].Value = a;
    parameters [1].Value =b;
    parameters[2].Value = c;
    parameters[3].Direction = ParameterDirection.Output;
    14为输出参数。
    获得输出参数
    pageCount= (int)parameters[14].Value;前台接收
    int a;
    GetAllWorksVoteByWorksID("", 0, 1, 1,out a);
    a就是输出参数的值了
      

  6.   

    额  我弄错了` 哪个1是String 的`` 
      

  7.   

    打错
    GetAllWorksVoteByWorksID(string a,int b , int c, out int pageCount)
    LZ只要把你要输出的参数定义为out 就行了
      

  8.   

    那你就按我这样写就行了。 
          能获得存储过程中output类型的值