Control.Load Olay

Tanım

Sunucu denetimi nesneye Page yüklendiğinde gerçekleşir.

public:
 event EventHandler ^ Load;
public event EventHandler Load;
member this.Load : EventHandler 
Public Custom Event Load As EventHandler 

Olay Türü

EventHandler

Örnekler

// This is the constructor for a custom Page class. 
// When this constructor is called, it associates the Control.Load event,
// which the Page class inherits from the Control class, with the Page_Load
// event handler for this version of the page.
public MyPage()
{
   Load += new EventHandler(Page_Load);
}
' This is the constructor for a custom Page class. 
' When this constructor is called, it associates the Control.Load event,
' which the Page class inherits from the Control class, with the Page_Load
' event handler for this version of the page.
Public Sub New()
   AddHandler Load, AddressOf Page_Load
End Sub

Açıklamalar

Sunucu denetimine, her sayfa isteğinde gerçekleşecek şekilde ayarlanmış işleme adımlarını gerçekleştirmesini bildirir. Bu olaydan durum bilgilerine ve Web formu POST verilerine erişebilirsiniz. Sayfanın denetim hiyerarşisinde diğer sunucu denetimlerine de erişebilirsiniz.

Not

Olay sırasında Page_Load bir denetimde özel şablon ayarlarsanız, özel şablondaki alt denetimlerin metin değerleri kaybolur. Bunun nedeni, form değerlerinin zaten yüklenmiş olmasıdır.

Şunlara uygulanır

Ayrıca bkz.