HttpCapabilitiesBase.RequiresContentTypeMetaTag Property

 

Gets a value indicating whether the browser requires an HTML <meta> element for which the content-type attribute is specified.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

abstract RequiresContentTypeMetaTag : bool with get
override RequiresContentTypeMetaTag : bool with get

Property Value

Type: System.Boolean

true if the browser requires an HTML <meta> element for which the content-type attribute is specified; otherwise, false. The default is false.

If true, server-control adapters insert the following tag into the HTML <head> element of a Web page:

<META HTTP-EQUIV="CONTENT-TYPE" CONTENT=""; CHARSET="">

In this example, CONTENT is the value returned by the PreferredRenderingMime property, and charset is the character encoding used.

The following code example shows how to determine whether the browser requires an HTML <meta> element for which the content-type attribute is specified.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: