UpdatePanel.Controls Propriedade

Definição

Obtém o objeto ControlCollection que contém os controles filho para o controle UpdatePanel.Gets the ControlCollection object that contains the child controls for the UpdatePanel control.

public:
 property System::Web::UI::ControlCollection ^ Controls { System::Web::UI::ControlCollection ^ get(); };
public override sealed System.Web.UI.ControlCollection Controls { get; }
member this.Controls : System.Web.UI.ControlCollection
Public Overrides NotOverridable ReadOnly Property Controls As ControlCollection

Valor da propriedade

ControlCollection

A coleção de controles filho para o controle UpdatePanel.The collection of child controls for the UpdatePanel control.

Exceções

O método Add(Control), AddAt(Int32, Control), Clear(), Remove(Control) ou RemoveAt(Int32) da classe ControlCollection foi chamado.The Add(Control), AddAt(Int32, Control), Clear(), Remove(Control), or RemoveAt(Int32) method of the ControlCollection class has been called. Para alterar o conteúdo do controle UpdatePanel, modifique os controles filho da propriedade ContentTemplateContainer.To change the content of the UpdatePanel control, modify the child controls of the ContentTemplateContainer property.

Comentários

A Controls propriedade é substituída da Control classe base e selada para evitar derivação adicional.The Controls property is overridden from the base Control class and sealed to prevent additional derivation. Para adicionar controles ao UpdatePanel controle declarativamente, crie um <ContentTemplate> elemento dentro da UpdatePanel marcação de controle.To add controls to the UpdatePanel control declaratively, create a <ContentTemplate> element inside the UpdatePanel control markup. Para adicionar controles ao UpdatePanel controle programaticamente, use a ContentTemplateContainer propriedade.To add controls to the UpdatePanel control programmatically, use the ContentTemplateContainer property.

Aplica-se a

Confira também