ContentTypeContentType 属性指定响应的 HTTP 内容类型。如果未指定 ContentType,默认为 text/HTML。 语法Response.ContentType [= ContentType ] 参数
示例下面的示例将内容类型设置为 Channel Definition Format(CDF)。 <% Response.ContentType = "application/x-cdf" %> 下面的示例将 ContentType 属性设置为其他的常见值。 <% Response.ContentType = "text/HTML" %><% Response.ContentType = "image/GIF" %><% Response.ContentType = "image/JPEG" %> 应用于Response 对象 |
温馨提示:喜欢本站的话,请收藏一下本站!