大家好,小问来为大家解答以上问题。response contenttype 转换这个很多人还不知道,现在让我们一起来看看吧!
1、不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式. 代码如: <% response.ContentType ="text/html" %> <!--#i nclude virtual="/ContentType.html" --> 显示的为网页,而 <% response.ContentType ="text/plain" %> <!--#i nclude virtual="/sscript/ContentType.html" --> 则会显示html原代码. 以下为一些常用的 ContentType GIF images <% response.ContentType ="image/gif" %> <!--#i nclude virtual="/myimage.gif" --> JPEG images <% response.ContentType ="image/jpeg" %> <!--#i nclude virtual="/myimage.jpeg" --> TIFF images <% response.ContentType ="image/tiff" %> <!--#i nclude virtual="/myimage.tiff" --> MICROSOFT WORD document <% response.ContentType ="application/msword" %> <!--#i nclude virtual="/myfile.doc" --> RTF document <% response.ContentType ="application/rtf" %> <!--#i nclude virtual="/myfile.rtf" --> MICROSOFT EXCEL document <% response.ContentType ="application/x-excel" %> <!--#i nclude virtual="/myfile.xls" --> MICROSOFT POWERPOINT document <% response.ContentType ="application/ms-powerpoint" %> <!--#i nclude virtual="/myfile.pff" --> PDF document <% response.ContentType ="application/pdf" %> <!--#i nclude virtual="/myfile.pdf" --> ZIP document <% response.ContentType ="application/zip" %> <!--#i nclude virtual="/myfile.zip" --> 。
以上就是【response contenttype 转换】相关内容。









