示例#1
0
    public void Bind()
    {
        string CreateDate    = txtDate.Value + " 0:0:0";
        string EndCreateDate = txtEndDate.Value + " 23:59:59";
        string strwhere      = "1=1 and LogTime between '" + CreateDate + "' and '" + EndCreateDate + "'";

        if (ViewState["strwhere"] != null)
        {
            strwhere += ViewState["strwhere"].ToString();
        }

        LoginLog login = new LoginLog(Returnsql(strwhere));

        Pager.RecordCount = login.getDataCount();
        DataTable dt = login.getData(Pager.PageSize, Pager.StartRecordIndex - 1);

        this.rtp_loginLog.DataSource = dt;
        this.rtp_loginLog.DataBind();
    }