protected void BindRpt() { string prjCode = this.txtPrjCode.Text.Trim(); string prjName = this.txtPrjName.Text.Trim(); string text = this.txtStartDate.Text; string text2 = this.txtEndDate.Text; this.ViewState["analysis"] = EReport.GetBudAnalysis(prjCode, prjName, text, text2, base.UserCode, this.hfldIsWBSRelevance.Value); DataTable dataTable = this.ViewState["analysis"] as DataTable; this.AspNetPager1.RecordCount = dataTable.Rows.Count; this.AspNetPager1.PageSize = NBasePage.pagesize; this.rptBudget.DataSource = EReport.GetPageDataTable(dataTable, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize); this.rptBudget.DataBind(); if (this.rptBudget.Items.Count == 0) { base.RegisterScript("$('#rptBudget tr:last-child').remove();"); } }