Response.ContentType

Response.ContentType说明一下,类中的HttpContext.Current.Response.ContentType表示要导出文件的类型,下面是对Response.ContentType类型的汇总在ASP.NET中使用R

大家好,又见面了,我是你们的朋友全栈君。

  说明一下,类中的HttpContext.Current.Response.ContentType表示要导出文件的类型,
    下面是对Response.ContentType类型的汇总
    

<span role="heading" aria-level="2">Response.ContentType

<span role="heading" aria-level="2">Response.ContentType在ASP.NET中使用Response.ContentType=”类型名”;来确定输出格式 
<span role="heading" aria-level="2">Response.ContentType‘ez’ => ‘application/andrew-inset’,  
<span role="heading" aria-level="2">Response.ContentType‘hqx’ => ‘application/mac-binhex40’,  
<span role="heading" aria-level="2">Response.ContentType‘cpt’ => ‘application/mac-compactpro’,  
<span role="heading" aria-level="2">Response.ContentType‘doc’ => ‘application/msword’,  
<span role="heading" aria-level="2">Response.ContentType‘bin’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘dms’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘lha’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘lzh’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘exe’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘class’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘so’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘dll’ => ‘application/octet-stream’,  
<span role="heading" aria-level="2">Response.ContentType‘oda’ => ‘application/oda’,  
<span role="heading" aria-level="2">Response.ContentType‘pdf’ => ‘application/pdf’,  
<span role="heading" aria-level="2">Response.ContentType‘ai’ => ‘application/postscript’,  
<span role="heading" aria-level="2">Response.ContentType‘eps’ => ‘application/postscript’,  
<span role="heading" aria-level="2">Response.ContentType‘ps’ => ‘application/postscript’,  
<span role="heading" aria-level="2">Response.ContentType‘smi’ => ‘application/smil’,  
<span role="heading" aria-level="2">Response.ContentType‘smil’ => ‘application/smil’,  
<span role="heading" aria-level="2">Response.ContentType‘mif’ => ‘application/vnd.mif’,  
<span role="heading" aria-level="2">Response.ContentType‘xls’ => ‘application/vnd.ms-excel’,  
<span role="heading" aria-level="2">Response.ContentType‘ppt’ => ‘application/vnd.ms-powerpoint’,  
<span role="heading" aria-level="2">Response.ContentType‘wbxml’ => ‘application/vnd.wap.wbxml’,  
<span role="heading" aria-level="2">Response.ContentType‘wmlc’ => ‘application/vnd.wap.wmlc’,  
<span role="heading" aria-level="2">Response.ContentType‘wmlsc’ => ‘application/vnd.wap.wmlscriptc’,  
<span role="heading" aria-level="2">Response.ContentType‘bcpio’ => ‘application/x-bcpio’,  
<span role="heading" aria-level="2">Response.ContentType‘vcd’ => ‘application/x-cdlink’,  
<span role="heading" aria-level="2">Response.ContentType‘pgn’ => ‘application/x-chess-pgn’,  
<span role="heading" aria-level="2">Response.ContentType‘cpio’ => ‘application/x-cpio’,  
<span role="heading" aria-level="2">Response.ContentType‘csh’ => ‘application/x-csh’,  
<span role="heading" aria-level="2">Response.ContentType‘dcr’ => ‘application/x-director’,  
<span role="heading" aria-level="2">Response.ContentType‘dir’ => ‘application/x-director’,  
<span role="heading" aria-level="2">Response.ContentType‘dxr’ => ‘application/x-director’,  
<span role="heading" aria-level="2">Response.ContentType‘dvi’ => ‘application/x-dvi’,  
<span role="heading" aria-level="2">Response.ContentType‘spl’ => ‘application/x-futuresplash’,  
<span role="heading" aria-level="2">Response.ContentType‘gtar’ => ‘application/x-gtar’,  
<span role="heading" aria-level="2">Response.ContentType‘hdf’ => ‘application/x-hdf’,  
<span role="heading" aria-level="2">Response.ContentType‘js’ => ‘application/x-javascript’,  
<span role="heading" aria-level="2">Response.ContentType‘skp’ => ‘application/x-koan’,  
<span role="heading" aria-level="2">Response.ContentType‘skd’ => ‘application/x-koan’,  
<span role="heading" aria-level="2">Response.ContentType‘skt’ => ‘application/x-koan’,  
<span role="heading" aria-level="2">Response.ContentType‘skm’ => ‘application/x-koan’,  
<span role="heading" aria-level="2">Response.ContentType‘latex’ => ‘application/x-latex’,  
<span role="heading" aria-level="2">Response.ContentType‘nc’ => ‘application/x-netcdf’,  
<span role="heading" aria-level="2">Response.ContentType‘cdf’ => ‘application/x-netcdf’,  
<span role="heading" aria-level="2">Response.ContentType‘sh’ => ‘application/x-sh’,  
<span role="heading" aria-level="2">Response.ContentType‘shar’ => ‘application/x-shar’,  
<span role="heading" aria-level="2">Response.ContentType‘swf’ => ‘application/x-shockwave-flash’,  
<span role="heading" aria-level="2">Response.ContentType‘sit’ => ‘application/x-stuffit’,  
<span role="heading" aria-level="2">Response.ContentType‘sv4cpio’ => ‘application/x-sv4cpio’,  
<span role="heading" aria-level="2">Response.ContentType‘sv4crc’ => ‘application/x-sv4crc’,  
<span role="heading" aria-level="2">Response.ContentType‘tar’ => ‘application/x-tar’,  
<span role="heading" aria-level="2">Response.ContentType‘tcl’ => ‘application/x-tcl’,  
<span role="heading" aria-level="2">Response.ContentType‘tex’ => ‘application/x-tex’,  
<span role="heading" aria-level="2">Response.ContentType‘texinfo’ => ‘application/x-texinfo’,  
<span role="heading" aria-level="2">Response.ContentType‘texi’ => ‘application/x-texinfo’,  
<span role="heading" aria-level="2">Response.ContentType‘t’ => ‘application/x-troff’,  
<span role="heading" aria-level="2">Response.ContentType‘tr’ => ‘application/x-troff’,  
<span role="heading" aria-level="2">Response.ContentType‘roff’ => ‘application/x-troff’,  
<span role="heading" aria-level="2">Response.ContentType‘man’ => ‘application/x-troff-man’,  
<span role="heading" aria-level="2">Response.ContentType‘me’ => ‘application/x-troff-me’,  
<span role="heading" aria-level="2">Response.ContentType‘ms’ => ‘application/x-troff-ms’,  
<span role="heading" aria-level="2">Response.ContentType‘ustar’ => ‘application/x-ustar’,  
<span role="heading" aria-level="2">Response.ContentType‘src’ => ‘application/x-wais-source’,  
<span role="heading" aria-level="2">Response.ContentType‘xhtml’ => ‘application/xhtml+xml’,  
<span role="heading" aria-level="2">Response.ContentType‘xht’ => ‘application/xhtml+xml’,  
<span role="heading" aria-level="2">Response.ContentType‘zip’ => ‘application/zip’,  
<span role="heading" aria-level="2">Response.ContentType‘au’ => ‘audio/basic’,  
<span role="heading" aria-level="2">Response.ContentType‘snd’ => ‘audio/basic’,  
<span role="heading" aria-level="2">Response.ContentType‘mid’ => ‘audio/midi’,  
<span role="heading" aria-level="2">Response.ContentType‘midi’ => ‘audio/midi’,  
<span role="heading" aria-level="2">Response.ContentType‘kar’ => ‘audio/midi’,  
<span role="heading" aria-level="2">Response.ContentType‘mpga’ => ‘audio/mpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘mp2’ => ‘audio/mpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘mp3’ => ‘audio/mpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘aif’ => ‘audio/x-aiff’,  
<span role="heading" aria-level="2">Response.ContentType‘aiff’ => ‘audio/x-aiff’,  
<span role="heading" aria-level="2">Response.ContentType‘aifc’ => ‘audio/x-aiff’,  
<span role="heading" aria-level="2">Response.ContentType‘m3u’ => ‘audio/x-mpegurl’,  
<span role="heading" aria-level="2">Response.ContentType‘ram’ => ‘audio/x-pn-realaudio’,  
<span role="heading" aria-level="2">Response.ContentType‘rm’ => ‘audio/x-pn-realaudio’,  
<span role="heading" aria-level="2">Response.ContentType‘rpm’ => ‘audio/x-pn-realaudio-plugin’,  
<span role="heading" aria-level="2">Response.ContentType‘ra’ => ‘audio/x-realaudio’,  
<span role="heading" aria-level="2">Response.ContentType‘wav’ => ‘audio/x-wav’,  
<span role="heading" aria-level="2">Response.ContentType‘pdb’ => ‘chemical/x-pdb’,  
<span role="heading" aria-level="2">Response.ContentType‘xyz’ => ‘chemical/x-xyz’,  
<span role="heading" aria-level="2">Response.ContentType‘bmp’ => ‘image/bmp’,  
<span role="heading" aria-level="2">Response.ContentType‘gif’ => ‘image/gif’,  
<span role="heading" aria-level="2">Response.ContentType‘ief’ => ‘image/ief’,  
<span role="heading" aria-level="2">Response.ContentType‘jpeg’ => ‘image/jpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘jpg’ => ‘image/jpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘jpe’ => ‘image/jpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘png’ => ‘image/png’,  
<span role="heading" aria-level="2">Response.ContentType‘tiff’ => ‘image/tiff’,  
<span role="heading" aria-level="2">Response.ContentType‘tif’ => ‘image/tiff’,  
<span role="heading" aria-level="2">Response.ContentType‘djvu’ => ‘image/vnd.djvu’,  
<span role="heading" aria-level="2">Response.ContentType‘djv’ => ‘image/vnd.djvu’,  
<span role="heading" aria-level="2">Response.ContentType‘wbmp’ => ‘image/vnd.wap.wbmp’,  
<span role="heading" aria-level="2">Response.ContentType‘ras’ => ‘image/x-cmu-raster’,  
<span role="heading" aria-level="2">Response.ContentType‘pnm’ => ‘image/x-portable-anymap’,  
<span role="heading" aria-level="2">Response.ContentType‘pbm’ => ‘image/x-portable-bitmap’,  
<span role="heading" aria-level="2">Response.ContentType‘pgm’ => ‘image/x-portable-graymap’,  
<span role="heading" aria-level="2">Response.ContentType‘ppm’ => ‘image/x-portable-pixmap’,  
<span role="heading" aria-level="2">Response.ContentType‘rgb’ => ‘image/x-rgb’,  
<span role="heading" aria-level="2">Response.ContentType‘xbm’ => ‘image/x-xbitmap’,  
<span role="heading" aria-level="2">Response.ContentType‘xpm’ => ‘image/x-xpixmap’,  
<span role="heading" aria-level="2">Response.ContentType‘xwd’ => ‘image/x-xwindowdump’,  
<span role="heading" aria-level="2">Response.ContentType‘igs’ => ‘model/iges’,  
<span role="heading" aria-level="2">Response.ContentType‘iges’ => ‘model/iges’,  
<span role="heading" aria-level="2">Response.ContentType‘msh’ => ‘model/mesh’,  
<span role="heading" aria-level="2">Response.ContentType‘mesh’ => ‘model/mesh’,  
<span role="heading" aria-level="2">Response.ContentType‘silo’ => ‘model/mesh’,  
<span role="heading" aria-level="2">Response.ContentType‘wrl’ => ‘model/vrml’,  
<span role="heading" aria-level="2">Response.ContentType‘vrml’ => ‘model/vrml’,  
<span role="heading" aria-level="2">Response.ContentType‘css’ => ‘text/css’,  
<span role="heading" aria-level="2">Response.ContentType‘html’ => ‘text/html’,  
<span role="heading" aria-level="2">Response.ContentType‘htm’ => ‘text/html’,  
<span role="heading" aria-level="2">Response.ContentType‘asc’ => ‘text/plain’,  
<span role="heading" aria-level="2">Response.ContentType‘txt’ => ‘text/plain’,  
<span role="heading" aria-level="2">Response.ContentType‘rtx’ => ‘text/richtext’,  
<span role="heading" aria-level="2">Response.ContentType‘rtf’ => ‘text/rtf’,  
<span role="heading" aria-level="2">Response.ContentType‘sgml’ => ‘text/sgml’,  
<span role="heading" aria-level="2">Response.ContentType‘sgm’ => ‘text/sgml’,  
<span role="heading" aria-level="2">Response.ContentType‘tsv’ => ‘text/tab-separated-values’,  
<span role="heading" aria-level="2">Response.ContentType‘wml’ => ‘text/vnd.wap.wml’,  
<span role="heading" aria-level="2">Response.ContentType‘wmls’ => ‘text/vnd.wap.wmlscript’,  
<span role="heading" aria-level="2">Response.ContentType‘etx’ => ‘text/x-setext’,  
<span role="heading" aria-level="2">Response.ContentType‘xsl’ => ‘text/xml’,  
<span role="heading" aria-level="2">Response.ContentType‘xml’ => ‘text/xml’,  
<span role="heading" aria-level="2">Response.ContentType‘mpeg’ => ‘video/mpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘mpg’ => ‘video/mpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘mpe’ => ‘video/mpeg’,  
<span role="heading" aria-level="2">Response.ContentType‘qt’ => ‘video/quicktime’,  
<span role="heading" aria-level="2">Response.ContentType‘mov’ => ‘video/quicktime’,  
<span role="heading" aria-level="2">Response.ContentType‘mxu’ => ‘video/vnd.mpegurl’,  
<span role="heading" aria-level="2">Response.ContentType‘avi’ => ‘video/x-msvideo’,  
<span role="heading" aria-level="2">Response.ContentType‘movie’ => ‘video/x-sgi-movie’,  
<span role="heading" aria-level="2">Response.ContentType‘ice’ => ‘x-conference/x-cooltalk’  

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/154853.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 2022美赛A题[通俗易懂]

    2022美赛A题[通俗易懂]2021美赛A题

    2022年4月29日
    43
  • 解决Python扩展: Unable to find vcvarsall.bat[通俗易懂]

    解决Python扩展: Unable to find vcvarsall.bat[通俗易懂]安装mingw,以我的安装为例:我的mingw安装在C:\MinGW,python安装在C:\Python26然后将以下目录加入系统环境变量C:\MinGW\bin;C:\MinGW\msys\1.0;C:\MinGW\mingw32;C:\MinGW\mingw32\bin;C:\MinGW\msys\1.0\bin然后在目录C:\Python26\Lib\di…

    2022年5月29日
    40
  • import win32api 找不到指定程序_win32api python

    import win32api 找不到指定程序_win32api python环境描述:使用环境是win7+Python3.4,32位,下载地址:https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/问题1:终端输入importwin32api后,总是报错,错误如下:问题1解决:使用的python-3.4是32位的,win7系统是64位的,在下载pywin32时…

    2022年10月10日
    2
  • Linux下配置bond0

    Linux下配置bond01.使用network接管网络服务,停止使用NetworkManager,如若没有network服务,安装network-scripts安装包即可2.做之前备份网卡配置文件。配置模板前景要求:6个网口,两两配置bond0,连接名分别为servicebond、cloudbond、storagebond,三个平面的VLanID分别为19,320,414一、配置连接名#vim/etc/sysconfig/network-scripts/ifcfg-servicebond

    2022年4月6日
    177
  • Jquery选中的radio行变色

    Jquery选中的radio行变色

    2021年8月23日
    63
  • XSD文件结构详解「建议收藏」

    XSD文件结构详解「建议收藏」XSD(xmlSchemaDefinition)XmlSchema的用途1.  定义一个Xml文档中都有什么元素2.  定义一个Xml文档中都会有什么属性3.  定义某个节点的都有什么样的子节点,可以有多少个子节点,子节点出现的顺序4.  定义元素或者属性的数据类型5.  定义元素或者属性的默认值或者固定值XmlSchema的根元素:&lt;?xmlversion="1.0"?&gt;…

    2025年7月25日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号