ContentTypeContentType 屬性指定響應(yīng)的 HTTP 內(nèi)容類型。如果未指定 ContentType,默認(rèn)為 text/HTML。 語法Response.ContentType [= ContentType ] 參數(shù)
示例下面的示例將內(nèi)容類型設(shè)置為 Channel Definition Format(CDF)。 <% Response.ContentType = "application/x-cdf" %> 下面的示例將 ContentType 屬性設(shè)置為其他的常見值。 <% Response.ContentType = "text/HTML" %><% Response.ContentType = "image/GIF" %><% Response.ContentType = "image/JPEG" %> 應(yīng)用于Response 對(duì)象 |
溫馨提示:喜歡本站的話,請(qǐng)收藏一下本站!