如题;
我在datalist控件中有个修改按扭,然后在itemcommand事件中int imgid = int.Parse(e.CommandName);
        if (e.CommandArgument == "del")
        {
            if (ImgManage.delImg(imgid) > 0)
            {
                displayinfo();
                ClientScript.RegisterStartupScript(this.GetType(),"key","<script>删除成功!!</script>");
            }
        }
        else
        {
            this.Image1.ImageUrl = ImgManage.getIMGbyId(imgid).ImageUrl;
        }
Image1是弹出层上的Image控件名  调试Image1.ImageUrl = "~/images/up/2966_20090331023422_1.jpg"
可是在页面就是不显示 郁闷中

解决方案 »

  1.   

    断点一下  this.Image1.ImageUrl = ImgManage.getIMGbyId(imgid).ImageUrl;
    看这句执行了 吗还有就是上面应该是
       ClientScript.RegisterStartupScript(this.GetType(),"key","<script>alert('删除成功!!')</script>");
      

  2.   

    调试Image1.ImageUrl = "~/images/up/2966_20090331023422_1.jpg" 
      

  3.   

    首先你确定走
    else了吗??
    再次 路径是否正确 就是是否是显示X号
    右击检查路径~~