Page_Load

  • Thread starter Thread starter redeem
  • Start date Start date
R

redeem

Hi

Im doing the asp.net tutorial and Im wondering if any sub
called Page_load is automactically loaded when the
listing is compiled?

Sub Page_Load(Sender As Object, E As EventArgs)

If Not (Page.IsPostBack)
NameLabel.Text = Request.QueryString("Name")
End If
End Sub

Redeem
 
Hi Redeem,
The Page Loads event is everytime handled every time the page is loaded
So at the start and with a post back.
Sub Page_Load(Sender As Object, E As EventArgs)

Sub Page_Load(Sender As Object, E As EventArgs) Handles MyBase.Load
If Not (Page.IsPostBack)
NameLabel.Text = Request.QueryString("Name")
End If
End Sub

I hope this helps a little bit
Cor
 
Back
Top