473,657 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page_Load Subroutine

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
2 1450
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********@lyc os.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
Hi, as long as the Handles clause points the subroutine to the Load event:

Public Sub AnyNameForARout ine(...) 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.Reflecti on Master "

==== Converting to 2002 ====
Remove inline declarations
"Redeem" <re********@lyc os.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
1894
by: thejackofall | last post by:
Hi. I have a button called btnSelect on a web form. There is a handler for it. However, the Page_Load() gets called before the handler gets called. I want to do the following. In the Page_Load(), I want to check if the btnSelect caused the event. How can I do this? Please help.
1
1103
by: Yongsub Eric Shin | last post by:
Hi all. Just one question about Page_Load subroutine I have the following code <script runat="server"> Sub Page_Load if Not Page.IsPostBack then dim mycountries=New ArrayList
1
1091
by: darrel | last post by:
I'm trying to create a usercontrol that links to the same page as it is on along with a new query string in hopes that I can trigger the 'Sub Page_Load' to grab the querystring and reformat the page. The problem is that it seems as if there is a caching issue, as linking to the page itself SEEMS to reload the page, but the Page_Load subroutine isn't called each time. Is this just bad practice, or is there a way around this issue? ...
14
13104
by: V. Jenks | last post by:
I'm a little rusty having not touched .NET for 6 months and I can't remember why Page_Load is happening twice in this code: private void Page_Load(object sender, System.EventArgs e) { //existing session? if (Session == null) { //save local empty order object this._newOrder = Orders.Initialize();
2
1467
by: Sparky Arbuckle | last post by:
First and foremost, is it possible to execute two SQL statements that grab different data out of the same database in the same Page_Load subroutine? I am building a music store and want to do a SQL for ASIN, Release Date, Number of Disks, Price, etc... I have done this successfully. The next SQL I am constructing is going to be for the track numbers, names, and url for audio clips.
1
1098
by: Paul | last post by:
Would you expect there to be a problem if I used a Page_Load routine in both the header UserControl .ascx file, as well as the base .aspx file? For example, I want to use a ADO statement with a try catch in the header, as well as ADO in the base .aspx file. To use the try catch, it appears that I must embed that statement in a subroutine? Is this correct?
2
1434
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! **************************************************************************************************** Original Question: -------------------- Has anyone called a COBOL subroutine using COBOL CALL from a COBOL/DB2
0
1005
by: KY Lui | last post by:
I am developing a simple message sending application. A page (message.aspx) is used for message writing and message status confirmation. eg. A user access message.aspx to write a message, a send button should be clicked to send the message. Postback is occurred. Message.aspx will be used again to show the confirmation message. I encounter a issue in this stage? As i understand, all event handlers will be executed after all page_load...
8
2686
by: John Austin | last post by:
I need to understand why if I add a control and use AddHandler to connect its click event, it will work in Page_Load, but not in a Button_Click. The idea is that the user types some data, presses the button, gets a list of results (each with a LinkButton) and can then press one of the link buttons to get further information. The newly added link buttons appear, but the click event added with AddHandler does not fire. A control added in...
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.