Export (0) Print
Expand All

RouteParameter.RouteKey Property

Gets or sets the name of the route segment from which to retrieve the value for the route parameter.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public Property RouteKey As String

Property Value

Type: System.String
The name of the route segment that contains the value for the parameter.

When you define a route pattern, you can include segments that serve as placeholders for the actual values in the Web request URL. You define placeholders by enclosing them in braces ( { and } ). For example, a route pattern in the format blog/{action}/{entry} contains placeholders named action and entry. To retrieve the value of a placeholder, set the RouteKey property to the name of the placeholder and call the Evaluate method.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft