By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,685 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,685 IT Pros & Developers. It's quick & easy.

Page_Load

P: n/a
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

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cor
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
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.