Export (0) Print
Expand All

MetaForeignKeyColumn.GetForeignKeyPath Method (String, Object, String)

Gets the path for the specified action page of the parent table of the specified foreign-key field.

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

public string GetForeignKeyPath(
	string action,
	Object row,
	string path
)

Parameters

action
Type: System.String
The target action.
row
Type: System.Object
The row that contains the foreign-key field.
path
Type: System.String
The target page.

Return Value

Type: System.String
The path for the specified action page of the parent table of the specified foreign-key field.

The GetForeignKeyPath(String, Object) method returns the path for the specified action page based on the specified path. This method returns an empty string, if row is null.

You can use the values defined in the PageAction class for the action parameter.

.NET Framework

Supported in: 4, 3.5 SP1

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:
© 2015 Microsoft