Image _image = Image.FromFile(@"d:\a.gif");如何把_image给image控件?在winform中是 picbox.Image = _image;
那么web中呢?

解决方案 »

  1.   

    web里面是通过imageUrl来设置的this.Image1.ImageUrl = ..........
      

  2.   

    比如说
    this.Image1.ImageUrl = Server.MapPath("images/Shrek1.jpg");
      

  3.   

    我晕哦,是我表述的不清楚么?如果这么容易我何必来问呢,还散100分来问Image img = (Image)M.GetImage();
    Image1.ImageUrl = img ; ???????????????????????????这样也可以吗?
      

  4.   

    this.Image1.ImageUrl = Server.MapPath("images/Shrek1.jpg");
      

  5.   

    我明白楼主的意思,是想把image对象出的图用image控件来输出.
      

  6.   

    那就专门一个aspx页面来实现你的功能
    this.Image1.ImageUrl = showimage.aspx