BulletedList.RaisePostBackEvent(String) Método

Definição

Aciona eventos para o controle BulletedList quando o postback de um formulário para o servidor é executado.Raises events for the BulletedList control when a form is posted back to the server.

protected:
 virtual void RaisePostBackEvent(System::String ^ eventArgument);
protected virtual void RaisePostBackEvent (string eventArgument);
abstract member RaisePostBackEvent : string -> unit
override this.RaisePostBackEvent : string -> unit
Protected Overridable Sub RaisePostBackEvent (eventArgument As String)

Parâmetros

eventArgument
String

A representação da cadeia de caracteres para o índice do item de lista que gerou o evento.The string representation for the index of the list item that raised the event.

Comentários

O RaisePostBackEvent método é usado internamente pelo BulletedList controle quando um botão de link dentro da lista de itens é clicado.The RaisePostBackEvent method is used internally by the BulletedList control when a link button within the item list is clicked. A página recipiente especifica o índice do botão de link clicado no eventArgument parâmetro, que é usado para inicializar a Index propriedade de um BulletedListEventArgs objeto.The containing page specifies the index of the clicked link button in the eventArgument parameter, which is used to initialize the Index property of a BulletedListEventArgs object. O RaisePostBackEvent método gera um Click evento, passando o objeto inicializado BulletedListEventArgs para o OnClick método.The RaisePostBackEvent method raises a Click event by passing the initialized BulletedListEventArgs object to the OnClick method.

O RaisePostBackEvent método opcionalmente pode executar a validação antes de gerar o Click evento para o controle.The RaisePostBackEvent method optionally can perform validation before raising the Click event for the control. Para validar um grupo de controles na página quando um botão de link dentro do BulletedList for clicado, defina a CausesValidation propriedade como true e especifique o grupo de controles a serem validados na ValidationGroup propriedade.To validate a group of controls on the page when a link button within the BulletedList is clicked, set the CausesValidation property to true and specify the group of controls to be validated in the ValidationGroup property.

Aplica-se a

Confira também