DataControlReference.ControlID Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l'ID du contrôle lié aux données géré par le contrôle DynamicDataManager.
public:
property System::String ^ ControlID { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter("System.Web.DynamicData.Design.DataControlReferenceIDConverter, System.Web.DynamicData.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public string ControlID { get; set; }
[<System.ComponentModel.TypeConverter("System.Web.DynamicData.Design.DataControlReferenceIDConverter, System.Web.DynamicData.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
member this.ControlID : string with get, set
Public Property ControlID As String
Valeur de propriété
ID du contrôle lié aux données géré par le contrôle DynamicDataManager.
- Attributs
Exemples
L’exemple suivant montre le balisage d’un modèle de page Données dynamiques qui connecte le DynamicDataManager contrôle à un FormView contrôle. La ControlID propriété est définie sur « FormView1 ».
Notes
Certains balisages sont supprimés pour plus de clarté.
<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>
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour