public void Bind() { string strwhere = " and 1=1"; if (ViewState["strwhere"] != null) { strwhere += ViewState["strwhere"].ToString(); } else { strwhere += Where(); } LoginLog login = new LoginLog(); //Pager.RecordCount = login.getDataCount(); //DataTable dt = login.getData(Pager.PageSize, Pager.StartRecordIndex - 1); DataTable dt = login.getDataSet(Returnsql(strwhere)); this.rtp_loginLog.DataSource = dt; this.rtp_loginLog.DataBind(); }