Export (0) Print
Expand All

DynamicDataRoute Constructor

Initializes a new instance of the DynamicDataRoute class by using the specified URL pattern.

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

public DynamicDataRoute(
	string url


Type: System.String

The pattern for the URL.

Typically, you specify the URLs that Dynamic Data will create by using substitution parameters. For example, if you pass the string "{table}/{action}", the result would be the URL "~/Products/ListDetails.aspx" when you view the Product table by using the ListDetails action.

Using substitution parameters is not required. You could pass the string "Table/DynamicData", which would produce "~/Table/DynamicData.aspx". You could pass "MyPageName" to produce "~/MyPageName.aspx". Dynamic Data does not rely on the URL to determine table and action information.

.NET Framework

Supported in: 4.5, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

© 2014 Microsoft