MetaTable.GetDataKeyFromRoute Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Retrieves the primary key of the entity from the route values.

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

public DataKey GetDataKeyFromRoute()

Return Value

Type: System.Web.UI.WebControls.DataKey

The primary-key values of the entities, if they are found; otherwise, null.

The route values typically come from the request URL query string.

.NET Framework
Available since 4.0
Return to top