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 Subroutine

P: n/a
is Page_Load Subroutine a system defined soubroutine
meaning it isn't user defined?

I assume any code I place under that routine name will
automatically load when web page is run is it ?

Redeem
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Cor
Hi Redeem

It is every time that the page is loaded executed, so when you not place
something like
\\\
If not ispostback then
//
All is executed

I hope this helps a little bit.
Cor
<re********@lycos.co.uk> schreef in bericht
news:2a*****************************@phx.gbl...
is Page_Load Subroutine a system defined soubroutine
meaning it isn't user defined?

I assume any code I place under that routine name will
automatically load when web page is run is it ?

Redeem

Nov 20 '05 #2

P: n/a
Hi, as long as the Handles clause points the subroutine to the Load event:

Public Sub AnyNameForARoutine(...) Handles MyBase.Load
...
End Sub

The Handles MyBase.Load tells the compiler that this subroutine is executed
when the Load event occurs.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
"Redeem" <re********@lycos.co.uk> wrote in message
news:2a*****************************@phx.gbl...
is Page_Load Subroutine a system defined soubroutine
meaning it isn't user defined?

I assume any code I place under that routine name will
automatically load when web page is run is it ?

Redeem

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.