コード例 #1
0
        private void NewsGroupFollow(int Id, int cId)
        {
            NewsGroupBSO newsgroupBSO = new NewsGroupBSO();
            DataTable table = newsgroupBSO.NewsGroupFollow(Id, cId, 10, "1");
            if (table.Rows.Count > 0)
                Label1.Text = "<div class='title_article_top'>" + String.Format(Resources.Resource.OtherNews) + "</div>";
            else
                Label1.Text = "";

            DataView view = new DataView(table);
            view.Sort = "PostDate Desc";
            table = view.ToTable();

            DataListNews.DataSource = table;
            DataListNews.DataBind();
        }