服务器上直接操作才可以你用 <a href="http://computername/test.doc">aaa</a>把文件放在网站目录下即可

解决方案 »

  1.   

    Label9.Text = "<a href='"+Server.MapPath("test.doc")+"'>" & dsPlan.Tables(0).Rows(0)("Pattach1").ToString() & "</a>"
      

  2.   

    在e:\下的文件一般都不是外界能通过http来访问的你可以用一个aspx文件来读取它的内容, 并传给客户端
    string strFile = "e:\\test.doc";
    FileStream fs = new FileStream(strFile, FileMode.Open);
    byte[] bytes = new byte[(int)fs.Length];
    fs.Read(bytes, 0, bytes.Length);
    fs.Close();
    Response.ContentType = "application/octet-stream";
    Response.AddHeader("Content-Disposition", "attachment;filename=" & strFile);
    Response.BinaryWrite(bytes);
    Response.End();