Esempio n. 1
0
    protected void BindData(string id)
    {
        FImg_Lib bll = new FImg_Lib();

        RP_img.DataSource = bll.GetDAL().GetList("P_ImgLibrary=" + id);
        RP_img.DataBind();
    }
Esempio n. 2
0
    protected string GetCoverImg(string typeid)
    {
        FImg_Lib bll   = new FImg_Lib();
        EImg_Lib model = bll.GetDAL().GetModel(" P_ImgLibrary=" + typeid);

        if (model != null)
        {
            return("../../upload/Img_Lib/" + model.SRC);
        }
        else
        {
            return("../../img/no_photo.png");
        }
    }