是不是Response.ContentType没有设置? 

解决方案 »

  1.   

    当成了文件处理,设置输入Response.ContentType,
      

  2.   


    这跟客户端没有关系。去看看你的web服务器还能不能正常运行asp.net应用了?!
      

  3.   

    把你的IIS重新配置一下,把你的应用程序缓冲池重新配置一下,等等。总之是注册和启用asp.net。跟浏览器没有关系。
      

  4.   


    请问要怎么配置呢?顺便说一下,ContentType 是这样的:context.Response.ContentType = "text/html; charset=utf-8";
      

  5.   

    应该是这样,把ContentType改成html没问题,如果改成xml就会出现对话框
    context.Response.ContentType = "text/xml; charset=utf-8";
      

  6.   

    其它所有程序正常,在IE下运行也全部正常,就是在firefox下,如果返回的数据是xml,就会弹出保存或者选择程序处理的对话框
      

  7.   

    我的经历:
    context.Response.ContentType = "application/json";火狐下可以直接查看返回结果
    context.Response.ContentType = "application/text";火狐下成了下载,但是IE仍然是打开效果对你绝对有用!