在GridView中用了一个linkbutton提供文件下载,点击时弹出讯雷,讯雷窗口中的另存名称为当前网页(XXX.aspx),不是要下载的文档,然后把讯雷关掉,就可以正常下载该文档了。请各位帮帮忙,如何不让讯雷弹出来,或者让讯雷上的另存名称为文档的名。谢谢
我再别的网页上直接用linkbutton提供文档下载就没没有弹出讯雷。        string fileName = "文件.txt";
        string filePath = Server.MapPath("download/aaa.txt");        FileStream fs = new FileStream(filePath, 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=" + HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
        Response.BinaryWrite(bytes);
        Response.Flush();
        Response.End();