自己做一个分页的用户控件,特别好用,只要你在需要分页的aspx文件注册就可以了,我就是这样实现的,有兴趣可以给你看看。但前提必须揭帖。

解决方案 »

  1.   

    好的,谢谢,我从来都是发帖必结的,但是前提也是能确实解决我的问题我的 email:  [email protected]
    谢谢!!
      

  2.   

    TO:  lvzm(lzm) 分页控件我可以实现,但现在的问题是,翻页的时候,我的 dropdownlist 不能保持住值的问题.
      

  3.   

    >>>>PageLink.Text=PageLink.Text+"[<a href='51job_perfect_zw_show_page_divided.aspx?Page="+(YjDataGrid.CurrentPageIndex+2)+"'>下一页</a>] 
    you are using normal links, it is a GET action, ViewState doesn't exist. use LinkButton instead, and put the information in LinkButton's CommandArgument property
    oryou can pass along the information in the hrefPageLink.Text=PageLink.Text+ String.Format("[<a href='51job_perfect_zw_show_page_divided.aspx?Page={0}&BoundField={1}&BoundField2={2}'>下一页</a>]",YjDataGrid.CurrentPageIndex+2, BoundField,BoundField2 );public string BoundField
    {
    get
    {
    object o = ViewState["BoundField"];
    if (o == null)
      o = Request.Params["BoundField"];
    if (o == null)
       return "";
    else
    return (string)ViewState["BoundField"];
    }
    set
    {
    ViewState["BoundField"] = value;
    }
    }