Control.Load Olay
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
// 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
Sunucu denetimine, her sayfa isteğinde gerçekleşecek şekilde ayarlanmış işlem adımlarını gerçekleştirmesini bildirir. Bu olaydan durum bilgilerini ve Web formu POST verilerini görüntüleyebilirsiniz. Sayfanın denetim hiyerarşisinde diğer sunucu denetimlerine de erişebilirsiniz.
Not
Olay sırasında Page_Load
denetimde özel bir şablon ayarlarsanız, özel şablondaki alt denetimlerin metin değerleri kaybolur. Bunun nedeni, form değerlerinin zaten yüklenmiş olmasıdır.
Ürün | Sürümler |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: