第二个估计是Windows设置问题造成的:
在文件夹选项菜单里,选择CSV后缀-高级按钮,选择了"下载后确认打开"

解决方案 »

  1.   

    浏览器不认识“.scv”,是“.csv”吧?你是要用户下载存盘还是要用户选择打开文件?如果是后者,Response.AppendHeader("Content-Disposition", "inline ;Filename=" & httpUtility.
    UrlEncode("pb_download") & ".scv")
    Response.ContentType = "application/vnd.ms-excel" 否则的话,用Response.AppendHeader("Content-Disposition", "attachment ;Filename=" & httpUtility.
    UrlEncode("pb_download") & ".scv")
    Response.ContentType = "application/octet-stream"