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

        this.uInfo = new UserInfo();

        if (this.uInfo.IsLogin == false)
        {
            this.uInfo.RedirectLoginPagePopup();
            Response.End();
        }

        if (!IsPostBack)
        {
            NoteData     data = new NoteData();
            ListDataView ldv  = data.RetrieveUserNoteList(this.uInfo.Uno, "Y", this.nCurPage, this.nPageRow);

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

            string pagingURL = "RetrieveUserNoteList.aspx?curPage={0}";

            this.pageNavigator.Text = NoteUtil.SetNavigator(this.nCurPage, this.nTotalRecord, this.nPageRow, pagingURL);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.nCurPage = int.Parse(IMBC.FW.Util.WebUtil.GetRequestQueryString("curPage", "1"));

        this.uInfo = new UserInfo();

        if (this.uInfo.IsLogin == false)
        {
            this.uInfo.RedirectLoginPagePopup();
            Response.End();
        }

        if (System.Web.Configuration.WebConfigurationManager.AppSettings["pmstart"].ToString() == "ON")
        {
            Response.Redirect("http://imbc.com/broad/radio/minimbc/new_notice/notice_con/index.html");
            Response.End();
        }

        if (!IsPostBack)
        {
            NoteData data = new NoteData();

            if (this.nCurPage == 1)
            {
                this.logRepeater.DataSource = data.RetrieveScriptLogList();
                this.logRepeater.DataBind();
            }

            ListDataView ldv = data.RetrieveUserNoteList(this.uInfo.Uno, "N", this.nCurPage, this.nPageRow);

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

            string pagingURL = "RetrieveUserNoteList.aspx?curPage={0}";

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