Example #1
0
    public static void RepeaterArticleImgList(int id, Repeater rep)
    {
        DataSet dt = new Cms.BLL.C_article_albums().GetList("article_id=" + id + " order by id desc");//文章组图

        if (dt != null && dt.Tables[0].Rows.Count > 0)
        {
            rep.DataSource = dt.Tables[0].DefaultView;
            rep.DataBind();
        }
    }
Example #2
0
    public void getArticleLitpic()
    {
        string  id = Request["id"];
        DataSet ds = new Cms.BLL.C_article_albums().GetList(10, "article_id=" + id, "id desc");

        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            string strJson = ConvertJson.ToJson(ds);
            Response.Write(strJson);
            Response.End();
        }
        else
        {
            Response.Write("");
            Response.End();
        }
    }