DataControlReference DataControlReference DataControlReference DataControlReference Class

定義

啟用 DynamicDataManager,以宣告方式定義它管理的資料控制項。Enables the DynamicDataManager to declaratively define data controls that it manages.

public ref class DataControlReference
public class DataControlReference
type DataControlReference = class
Public Class DataControlReference
繼承
DataControlReferenceDataControlReferenceDataControlReferenceDataControlReference

範例

下列範例顯示將連接DynamicDataManager FormView至控制項的動態資料頁面範本中的標記。The following example shows the markup from a Dynamic Data page template that connects the DynamicDataManager to a FormView control.

注意

為了清楚起見, 已移除某些標記。Some markup is removed for clarity.

<asp:DynamicDataManager ID="DynamicDataManager1" runat="server"   
    AutoLoadForeignKeys="true">  
  <DataControls>  
    <asp:DataControlReference ControlID="FormView1" />  
  </DataControls>  
</asp:DynamicDataManager>  

<asp:UpdatePanel ID="UpdatePanel1" runat="server">  
  <ContentTemplate>  
    <!-- Items omitted for clarity. -->  
    <asp:FormView runat="server" ID="FormView1"   
        DataSourceID="DetailsDataSource" DefaultMode="Edit"  
        OnDataBound="FormView1_DataBound">  
        <!-- Items omitted for clarity. -->  
    </asp:FormView>  

  </ContentTemplate>  
</asp:UpdatePanel>  

建構函式

DataControlReference() DataControlReference() DataControlReference() DataControlReference()

初始化 DataControlReference 類別的新執行個體。Initializes a new instance of the DataControlReference class.

屬性

ControlID ControlID ControlID ControlID

取得 DynamicDataManager 控制項管理的資料繫結控制項識別碼。Gets the ID of the data-bound control that is managed by the DynamicDataManager control.

Owner Owner Owner Owner

取得包含資料控制項的 DynamicDataManager 控制項。Gets the DynamicDataManager control that contains the data control.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

取得附加 ControlID 控制項值的常值字串 DataControl:Gets the literal string DataControl: that has the value of the ControlID control appended to it.

適用於