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’  

 

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

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

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

发表回复

您的电子邮箱地址不会被公开。

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