http://www.cnblogs.com/qiantuwuliang/archive/2009/08/21/1551200.htmlhttp://www.1100w.com/asp-net%E5%9B%BE%E7%89%87%E4%B8%8A%E4%BC%A0%E6%93%8D%E4%BD%9C/显示出来很简单,放一个Image控件指向你的url

解决方案 »

  1.   

    上传出问题了:上传发生错误!原因是:System.IO.DirectoryNotFoundException: 未能找到路径“F:\毕设\asp\web\images\hukou.jpg”的一部分。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) 在 System.IO.FileStream..ctor(String path, FileMode mode) 在 System.Web.HttpPostedFile.SaveAs(String filename) 在 shangchuan.Button1_Click(Object sender, EventArgs e) 位置 f:\毕设\asp\web\shangchuan.aspx.cs:行号 34
      

  2.   

    上传可以用fileupload等,上传后,图片要起个名字,可以让你方便的找到,比如记录的编号,显示时用<img>设置他的src即可
      

  3.   

    System.IO.DirectoryNotFoundException 是指目录不存在的异常信息
    你确定这个路径 F:\毕设\asp\web\images\hukou.jpg是正常的,
    你打开我的电脑,复制F:\毕设\asp\web\images\  能打开就是正常的,估计是你的web文件夹下没有images文件夹
      

  4.   

    说的很清楚DirectoryNotFoundException
    你有没有这个目录
      

  5.   

    用绝对路径,F:\毕设\asp\web\images\hukou.jpg这个是相对路径吧?