Share via


add Element for tagMapping for pages (ASP.NET Settings Schema)

Adds a tag mapping to the collection of tag mappings that are used during pre-compilation.

This element is new in the .NET Framework version 2.0.

<add
   mappedTagType=""
   tagType=""
/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

mappedTagType

Required attribute.

Specifies the name of the type to which the tagType is remapped.

tagType

Required attribute.

Specifies the name of the type for the tag that is being remapped.

Inherited attributes

Optional attributes.

Attributes inherited by all section elements.

Child Elements

None.

Parent Elements

Element Description

configuration

Specifies the required root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration settings in a configuration file and contains configuration elements that configure ASP.NET Web applications and control how the applications behave.

pages

Defines page-specific configuration settings, such as global ASP.NET directives, for pages and controls that are within the scope of the configuration file.

tagMapping

Defines a collection of tag types that are remapped to other tag types at compile time.

Remarks

The add element adds a tag mapping to the collection of tag mappings that are stored in the tagMapping element.

The tagMapping element defines a collection of tag types that are remapped to other tag types at compile time. This remapping causes the mapped type to be used in place of the original tag type for all pages and controls in the ASP.NET application that are within the scope of the configuration file.

Default Configuration

There is no default tagMapping element configured for ASP.NET.

Element Information

Configuration section handler

PagesSection

Configuration member

TagMapping

Configurable locations

Machine.config

Root-level Web.config

Application-level Web.config

Virtual or physical directory–level Web.config

Requirements

Microsoft Internet Information Services (IIS) version 5.0, 5.1, or 6.0

The .NET Framework version 2.0

Microsoft Visual Studio 2005

See Also

Tasks

How to: Configure Specific Directories Using Location Settings
How to: Lock ASP.NET Configuration Settings

Reference

tagMapping Element for pages (ASP.NET Settings Schema)
clear Element for tagMapping for pages (ASP.NET Settings Schema)
remove Element for tagMapping for pages (ASP.NET Settings Schema)
pages Element (ASP.NET Settings Schema)
system.web Element (ASP.NET Settings Schema)
configuration Element (General Settings Schema)
@ Page
System.Configuration
System.Web.Configuration
TagMapping
TagMapCollection
PagesSection

Concepts

ASP.NET Configuration File Hierarchy and Inheritance
Securing ASP.NET Configuration

Other Resources

General Configuration Settings (ASP.NET)
ASP.NET Configuration Settings
Configuring ASP.NET Applications
ASP.NET Configuration API