Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework General Reference
urlMappings Element (ASP.NET Settings Schema)

Defines a mapping that hides the real URL and maps it to a more user-friendly URL.

configuration Element (General Settings Schema)
  system.web Element (ASP.NET Settings Schema)
    urlMappings Element (ASP.NET Settings Schema)
<urlMappings enabled="true|false">
    <add.../>
    <clear />
    <remove.../>
</urlMappings>

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

Attributes

Attribute

Description

enabled

Optional Boolean attribute.

Determines whether the site navigation feature is enabled.

The default value is true.

Child Elements

Element

Description

add

Optional element.

Adds the specified UrlMapping object to the collection.

clear

Optional element.

Removes all the UrlMapping objects from the collection.

remove

Optional element.

Overloaded. Removes a UrlMapping object from the collection.

Parent Elements

Element

Description

configuration

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

system.web

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

Default Configuration

The following default urlMappings element is configured in the root Web.config file in the .NET Framework version 2.0.

<urlMappings enabled="true" />

The following example configures the urlMappings element for an ASP.NET application.

<urlMappings enabled="true">
  <clear />
  <add url="~/Home.aspx" mappedUrl="~/Default.aspx?tab=home" />
  <remove url="~/Home2.aspx" />
</urlMappings>

Configuration Section Handler

UrlMappingsSection

Configuration Member

SystemWebSectionGroupUrlMappings()()()

UrlMappingsSectionUrlMappings()()()

Configurable Locations

Machine.config

Root level Web.config

Application level Web.config

Requirements

IIS version 5.0, IIS version 5.1, and IIS version 6.0

.NET Framework version 2.0

Visual Studio 2005

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker