コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.progCode = IMBC.FW.Util.WebUtil.GetRequestQueryString("progCode", "");
        this.nCurPage = int.Parse(IMBC.FW.Util.WebUtil.GetRequestQueryString("curPage", "1"));

        if (!IsPostBack)
        {
            NoteData     data = new NoteData();
            ListDataView ldv  = data.RetrieveAdminNoteList(this.progCode, nCurPage, nPageRow);

            this.nTotalRecord            = ldv.TotalCount;
            this.listRepeater.DataSource = ldv.DV;
            this.listRepeater.DataBind();

            string pagingURL = "RetrieveAdminNoteList.aspx?curPage={0}&progCode=" + this.progCode;

            this.pageNavigator.Text = NoteUtil.SetNavigator(this.nCurPage, this.nTotalRecord, this.nPageRow, pagingURL);
        }
    }