ASP ContentType အချက်အလက်:
ContentType အချက်အလက်သည် response အိမ်ရှိရာကို HTTP အကြောင်းအရာအုပ်စု အစိုးရပါသည်:
အပြောအဆ:
response.ContentType[=contenttype]
အရွေး: | ဖော်ပြ: |
---|---|
contenttype |
အကြောင်းအရာအုပ်စုကို ဖော်ပြသော စကားလုံးပုံစံ: ပုံစံအုပ်စုကို ဖတ်ရှုရန် သင့် ဘရောက်တာ သို့မဟုတ် HTTP အဘောင်ချက် ကို ထို့နောက်ကြည့်လျှင်: |
အမှတ်
အက်ပ်ပ် စနစ် ပုံစံကို အစိုးရသည် မပြင်ဆင်ဘဲ အပြီးအပိုင်း content-type အချက်အလက်သည် ထိုသို့ဖြစ်ပါသည်:
content-type:text/html
အခြားအသုံးပြုထိုအားလုံးသော ContentType သတ်မှတ်ခြင်းများ:
<%response.ContentType="text/HTML"%> <%response.ContentType="image/GIF"%> <%response.ContentType="image/JPEG"%> <%response.ContentType="text/plain"%> <%response.ContentType="image/JPEG"%>
ဤအမှတ်သည် ဘရောက်တာအား တွင်းရှိသော Excel အယ်လ်တာကို (အသုံးပြုသူက အသုံးပြုနိုင်သော်) ဖော်ပြမည်ဖြစ်ပါသည်:
<%response.ContentType="application/vnd.ms-excel"%> <html>
1 | 2 | 3 | 4 | </tr>
5 | 6 | 7 | <td>8</td> </tr> </table> </body> </html>