the browser doesn't work this way, you have to create one
<img src="displayimage.aspx?id=1">
for each of your images, then in "displayimage.aspx", find the image for the specific id and Response.BinaryWrite itsee how it is done for a DataGrid:
Retrieving Images from SqlServer and displaying in a DataGrid - ASP .NET
http://aspalliance.com/das/datagridimages.aspx

解决方案 »

  1.   

    http://aspalliance.com/das/datagridimages.aspx我用的也是这种方法,但是显示不出图片来。不知道什么原因。
      

  2.   

    http://www.aspalliance.com/wisemonk/samp/imgdg2.aspx
    你看这就是他的结果
    不能显示出来啊,大哥们看看阿
      

  3.   

    Response.AddHeader("Content-Disposition", "attachment; filename=a");
    你是不是有这样的一句啊,把这句去掉
    只需要设定
    Response.ContentType 
    就可以了
      

  4.   

    怪了,我自己解决的,应该可以自己给自己给分啊,他不准
    郁闷ing
    便宜那两个了,一人得了50分.