Esempio n. 1
0
 public bool edit(AdverInfo info, int id)
 {
     DataSetEdit("adver", id.ToString(),
             "linkurl", info.linkurl,
             "imgurl", info.imgurl);
     return true;
 }
Esempio n. 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);
        }
    }