Modifier

Partager via


DynamicDataRoute(String) Constructor

Definition

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

public:
 DynamicDataRoute(System::String ^ url);
public DynamicDataRoute (string url);
new System.Web.DynamicData.DynamicDataRoute : string -> System.Web.DynamicData.DynamicDataRoute
Public Sub New (url As String)

Parameters

url
String

The pattern for the URL.

Remarks

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.

Applies to