DynamicDataRoute(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.