Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
User Action:

DynamicDataExtensions.FindMetaTable Method (Control)

 

Returns the metatable object for the containing data control.

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

<ExtensionAttribute>
Public Shared Function FindMetaTable (
	current As Control
) As MetaTable

Parameters

current
Type: System.Web.UI.Control

The current control.

Return Value

Type: System.Web.DynamicData.MetaTable

The metatable object for the containing data control.

The following example shows how to find the MetaTable object for a control. In the example, the Dynamic Data page templates are copied to the \DynamicData\CustomPages\ProductDescriptions folder to provide a custom display for the ProductDescription table of the AdventureWorksLT database. The Insert.aspx file markup is changed to add an OnDataBound event handler named DetailsView1_DataBound, in which the FindMetaTable method is called to find the MetaTable object.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
.NET Framework
Available since 3.5
Return to top