BaseDataBoundControl.OnInit(EventArgs) Metoda

Definicja

Init Obsługuje zdarzenie.

protected public:
 override void OnInit(EventArgs ^ e);
protected internal override void OnInit (EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Friend Overrides Sub OnInit (e As EventArgs)

Parametry

e
EventArgs

EventArgs Obiekt, który zawiera dane zdarzenia.

Uwagi

Metoda OnInit najpierw wywołuje metodę klasy OnInit bazowej, a następnie wywołuje metodę OnPagePreLoad w celu obsługi Page.PreLoad zdarzenia. Ponadto jeśli żądanie HTTP do strony jest po powrocie i stan widoku jest włączony, OnInit metoda ustawia RequiresDataBinding właściwość na true.

Dotyczy

Zobacz też