예제 #1
0
파일: AdverDal.cs 프로젝트: joleye/1.6
 public bool edit(AdverInfo info, int id)
 {
     DataSetEdit("adver", id.ToString(),
             "linkurl", info.linkurl,
             "imgurl", info.imgurl);
     return true;
 }
예제 #2
0
    protected void btn_ServerClick(object sender, EventArgs e)
    {
        Img img = new Img();
        int id = 0;
        gnum(ref id, "id");
        img.savePathName = "adver";
        string path = img.saveImage("");
        if (img.error == "")
        {
            AdverInfo info = new AdverInfo();
            info.imgurl = path;
            info.linkurl = linkUrl.Value;

            AdverDal al = new AdverDal();
            al.edit(info,id);
            showMessage("保存成功");
        }
        else
        {
            showMessage(img.error);
        }
    }