예제 #1
0
    protected void GetData()
    {
        //if (groupid != null || groupid != string.Empty)
        //{
        //    DataRow dr = group.GetInfo(groupid);
        //}

        publish             = new Publish(groupid);
        rptGroup.DataSource = publish.GetPublish();
        rptGroup.DataBind();

        string PageQuery = "page";
        string strcPage  = Request.QueryString[PageQuery];

        if (strcPage == null)
        {
            strcPage = "1";
        }
        int cPage = Convert.ToInt32(strcPage);
        int TotalRecords, TotalPages;

        rptFree.DataSource = publish.GetNotInPublish(cPage, 20, out TotalRecords, out TotalPages);
        rptFree.DataBind();

        UssUrl sUrl = new UssUrl();

        PageList1.m_pTotalPage   = TotalPages;
        PageList1.m_pPageQuery   = PageQuery;
        PageList1.m_pCurrentPage = cPage;
        PageList1.m_pPageUrl     = sUrl.Url;
        PageList1.m_pIconPath    = Globals.UrlImages;

        ltlTotal1.Text = string.Format(Language.GetTextByID(45), TotalRecords);
    }