سؤال

if content type of page directive is not mentioned then what will be the default content type for page directive ??

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page.aspx.cs" Inherits="Page" %>

in this case what is the value of ContentType ??

هل كانت مفيدة؟

المحلول

The default value is "text/html", as mentioned in the documentation for ContentType property:

The HTTP MIME type of the output stream. The default value is "text/html".

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top