在ASP.NET中使用Response.ContentType=”类型名”;来确定输出格式
application/activemessage
application/andrew-inset
application/applefile
application/atomicmail
application/dca-rft
application/dec-dx
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/macwriteii
application/msword doc
application/news-message-id
application/news-transmission
application/octet-stream bin dms lha lzh exe class
application/jsp jsp
application/oda oda
application/pdf pdf
application/postscript ai eps ps
application/powerpoint ppt
application/remote-printing
application/rtf rtf
application/slate
application/wita
application/wordperfect5.1
application/x-bcpio bcpio
application/x-cdlink vcd
application/x-compress Z
application/x-cpio cpio
application/x-csh csh
application/x-director dcr dir dxr
application/x-dvi dvi
application/x-gtar gtar
application/x-gzip gz
application/x-hdf hdf
application/x-httpd-cgi cgi
application/x-java-jnlp-file jnlp
application/x-koan skp skd skt skm
application/x-latex latex
application/x-mif mif
application/x-netcdf nc cdf
application/x-sh sh
application/x-shar shar
application/x-stuffit sit
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo texi
application/x-troff t tr roff
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms [...]
分享到:
相关推荐
asp.net下Response.ContentType类型汇总
针对Response.ContentType的值,除了针对图片的类型外,还有其他的类型: Response.ContentType = "application/msword"; Response.ContentType = "application/x-shockwave-flash"; Response.ContentType = ...
foursquare-fhttp.zip,Foursquare FHTPMoved-项目仍在开发中,但此页已弃用。
微软有篇文章:... response.buffer=true response.contenttype=”application/x-msexcel” dim vntstream set oMyObject=server.createObject(“MyObject.BinRead”)’这个组件后面介绍
http中的contentType和responseType: contentType的主要类型和responseType的类型
context.Response.ContentType = "text/plain"; context.Response.Write("Hello World"); string username= context.Request.QueryString.Get("username"); if (username.ToString() == null || username....
protected void Page_Load(object sender, EventArgs e) ... Response.ContentType = "image/Png"; Response.BinaryWrite(ms.GetBuffer()); bitmap.Dispose(); ms.Dispose(); ms.Close(); Response.End(); }
今天刚刚编译的二维码类库,绝对支持中文! 使用方法(先引用dll) 示例: QRCodeEncoder qrCodeEncoder = new ...Response.ContentType = "image/Gif";//png , jpg都可 Response.BinaryWrite(MStream.ToArray());
HttpContext.Current.Response.ContentType ="application/ms-excel"; ctl.Page.EnableViewState =false; System.IO.StringWriter tw = new System.IO.StringWriter() ; System.Web.UI.HtmlTextWriter hw = new ...
网上有好多都说支持中文,实际都不行 这个是我试过可以支持中文的 代码例子从网上找了个... string code = Request.... Response.ContentType = "image/gif"; img.Save(Response.OutputStream, ImageFormat.Gif);
Eclipse-plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我
Response.ContentType 类型大全 IIS 6.0 不能处理未知的 MIME 类型 ASP.NET 2.0中将 GridView 导出到 Excel 文件中 ASP.NET2.0中Gridview中数据操作技巧 GridView经典删除操作,两种方法 揭秘ASP.NET 2.0的Eval...
在火弧里测试正常,但是IE里老是提示保存,在网上搜索了下,大部分是说将ContentType设置为”text/xml“本人测试了下,返回值为undefined, 原返回值设定:context.Response.ContentType = “application/json”;...
QRCode二维码维码支持中文Asp.Net(C#),是VS2010的项目,VS2008、VS2005也可以用,需要在你的项目里引用Thought... Response.ContentType = "image/Gif"; Response.BinaryWrite(MStream.ToArray()); 本项目100%可用。
context.Response.ContentType = "text/plain"; string ID = context.Request.Form["ID"]; string middelName = context.Request.Form["MiddleName"]; string lastName=context.Session["LastName"].ToString();...
1、修改源文件TrafficControl.js ... ... public void GetTrafficContol() ... Response.ContentType = "application/x-javascript"; Response.Write("eval('"+stream.ReadToEnd()+"')"); Response.End(); }
Response.ContentType = “Application/msword”; string s=Server.MapPath(“C#语言参考.doc”); Response.WriteFile(“C#语言参考.doc”); Response.Write(s); Response.Flush(); Response.Close(); 第...
ContentType 类型大全 doc