コード例 #1
0
 //刷新
 protected void btnRefresh_Click(object sender, EventArgs e)
 {
     BindData();
     btnDelete.Enabled = false;
     TriProjectNames.Reset();
     ddlsearch.Reset();
 }
コード例 #2
0
 public void BindData()
 {
     try
     {
         ViewState["page"] = 0;
         List <ProjectImportantNode> List = bllProjectImport.FindAll(Convert.ToInt32(Session["SecrecyLevel"]));
         GridProjectAndTime.RecordCount = List.Count();
         var result = List.Skip(GridProjectAndTime.PageIndex * GridProjectAndTime.PageSize).Take(GridProjectAndTime.PageSize).ToList();
         this.GridProjectAndTime.DataSource = result;
         this.GridProjectAndTime.DataBind();
         btnDelete.Enabled = false;
         TriProjectNames.Reset();
     }
     catch (Exception ex)
     {
         publicmethod.SaveError(ex, this.Request);
     }
 }