DataControlReference Class
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.
Enables the DynamicDataManager to declaratively define data controls that it manages.
public ref class DataControlReference
public class DataControlReference
type DataControlReference = class
Public Class DataControlReference
- Inheritance
-
DataControlReference
Examples
The following example shows the markup from a Dynamic Data page template that connects the DynamicDataManager to a FormView control.
Note
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>
Constructors
DataControlReference() |
Initializes a new instance of the DataControlReference class. |
Properties
ControlID |
Gets the ID of the data-bound control that is managed by the DynamicDataManager control. |
Owner |
Gets the DynamicDataManager control that contains the data control. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Gets the literal string |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈