日期:2014-05-19  浏览次数:20526 次

很奇怪的分页问题,帮忙指点,急~~~~
分页有时候好使,有时候就没反应,没反映时在页面左下角会出现小叹号,提示页面有错误,请指点迷津~~~


<asp:datagrid   id= "dgCreatePlan "   runat= "server "   AutoGenerateColumns= "False "   DataKeyField= "mes_id "   Width= "800px "   AllowPaging=True   PageSize= "10 "   PagerStyle-Mode=NumericPages>
<HeaderStyle   CssClass= "headerStyle "   ForeColor= "White "   HorizontalAlign= "Center "   />
<ItemStyle   BackColor= "white "   />
<AlternatingItemStyle   BackColor= "#EEEEEE "   />
<PagerStyle   Mode=NumericPages   HorizontalAlign=Right   Position=TopAndBottom> </PagerStyle>
<Columns>
<asp:BoundColumn   HeaderText= "编号 "   DataField= "mes_id "> </asp:BoundColumn>
<asp:TemplateColumn   ItemStyle-Width= "300 "   HeaderText= "标题 ">
<ItemTemplate>
<a   style= "cursor:hand;   "   onmouseout= "hiddenDiv() "   onmouseover= "javascript:startRequest( ' <%#   DataBinder.Eval(Container.DataItem, "mes_id ")%> ', 'createdUncplPlan ') "   onclick= "javascript:viewPlan( ' <%#   DataBinder.Eval(Container.DataItem, "mes_id ")%> ', 'createdUncplPlan ') ">
<%#   DataBinder.Eval(Container.DataItem, "title ")%>
</a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn   ItemStyle-Width= "70 "   HeaderText= "紧急程度 "   DataField= "secretName "   />
<asp:BoundColumn   ItemStyle-Width= "70 "   HeaderText= "重要程度 "   DataField= "urgentName "   />
<asp:BoundColumn   ItemStyle-Width= "130 "   HeaderText= "立项时间 "   DataField= "add_date "   />
<asp:BoundColumn   ItemStyle-Width= "130 "   HeaderText= "计划完成时间 "   DataField= "over_date "   />
</Columns>
</asp:datagrid>


后台代码
using   System;
using   System.Collections;
using   System.ComponentModel;
using   System.Data;
using   System.Drawing;
using   System.Web;
using   System.Web.SessionState;
using   System.Web.UI;
using   System.Web.UI.WebControls;
using   System.Web.UI.HtmlControls;
using   LJ;
using   LJ.DatabaseControl;

namespace   OfficeSystem.PersonalWork.Plan
{
///   <summary>
///   PlanController   的摘要说明。
///   </summary>
 
public   class   PlanController   :   System.Web.UI.Page
{
    protected   System.Web.UI.WebControls.Label   lbPlanListType;
    protected   System.Web.UI.WebControls.DataGrid   dgCreatePlan;
    protected   System.Web.UI.WebControls.Label   lbAddPlan;
    protected   System.Web.UI.WebControls.Label   lbMsg;
    protected   System.Web.UI.WebControls.Label   lbUncplPlan;
    protected   System.Web.UI.WebControls.Label   lbCpledPlan;
    private   string   empId= " ";

    public   string   EmpId
{
get
{