473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

doubt regarding load and init

Hi,
I am newbie to asp.net. I have small doubt regarding page life cycle.
MSDN documentaion says that init event does blhah, blah load event
does blah blah etc. But Id ont see any init or load event handlers in
base page class. Are there any handlers for these with different names.
Or Page
class does not have any methods for these at all.

One more suppporting point for me is that the signature for pageload
event handler does not have either overrides or new keyword which goes
to show that page_load is a fresh method and does not have base classs
implementations.

Please let me know where exactly is page initialization ands loading
will be done in base page class
Thanks,
Sandey

Dec 26 '06 #1
4 1504
System.Web.UI.Page inherits System.Web.UI.Control. That is where you'll find
those methods and events.

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

A pea rants as candy be sieving.

"SandyIsCool" <sa*************@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
Hi,
I am newbie to asp.net. I have small doubt regarding page life cycle.
MSDN documentaion says that init event does blhah, blah load event
does blah blah etc. But Id ont see any init or load event handlers in
base page class. Are there any handlers for these with different names.
Or Page
class does not have any methods for these at all.

One more suppporting point for me is that the signature for pageload
event handler does not have either overrides or new keyword which goes
to show that page_load is a fresh method and does not have base classs
implementations.

Please let me know where exactly is page initialization ands loading
will be done in base page class
Thanks,
Sandey

Dec 26 '06 #2
Hi,
Kevin,
I agree that load method is in control class. Do you mean to
say that initializing part is handled in oninit and loading part in
onload. someone please clarify
Thanks,
Sandeep

Kevin Spencer wrote:
System.Web.UI.Page inherits System.Web.UI.Control. That is where you'll find
those methods and events.

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

A pea rants as candy be sieving.

"SandyIsCool" <sa*************@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
Hi,
I am newbie to asp.net. I have small doubt regarding page life cycle.
MSDN documentaion says that init event does blhah, blah load event
does blah blah etc. But Id ont see any init or load event handlers in
base page class. Are there any handlers for these with different names.
Or Page
class does not have any methods for these at all.

One more suppporting point for me is that the signature for pageload
event handler does not have either overrides or new keyword which goes
to show that page_load is a fresh method and does not have base classs
implementations.

Please let me know where exactly is page initialization ands loading
will be done in base page class
Thanks,
Sandey
Dec 26 '06 #3
Hi everyone,
Please answer my query,. is the code related to page load written in
control.load method and init in page.init and so forth.
Thanks,
Sandy

SandyIsCool wrote:
Hi,
Kevin,
I agree that load method is in control class. Do you mean to
say that initializing part is handled in oninit and loading part in
onload. someone please clarify
Thanks,
Sandeep

Kevin Spencer wrote:
System.Web.UI.Page inherits System.Web.UI.Control. That is where you'll find
those methods and events.

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

A pea rants as candy be sieving.

"SandyIsCool" <sa*************@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
Hi,
I am newbie to asp.net. I have small doubt regarding page life cycle.
MSDN documentaion says that init event does blhah, blah load event
does blah blah etc. But Id ont see any init or load event handlers in
base page class. Are there any handlers for these with different names.
Or Page
class does not have any methods for these at all.
>
One more suppporting point for me is that the signature for pageload
event handler does not have either overrides or new keyword which goes
to show that page_load is a fresh method and does not have base classs
implementations.
>
Please let me know where exactly is page initialization ands loading
will be done in base page class
>
>
Thanks,
Sandey
>
Dec 27 '06 #4
The OnInit method is the first one called. The the LoadViewState, followed
by LoadPostData, and then by Load.

See:

http://msdn2.microsoft.com/en-us/lib...75(VS.71).aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

A pea rants as candy be sieving.

"SandyIsCool" <sa*************@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...
Hi,
Kevin,
I agree that load method is in control class. Do you mean to
say that initializing part is handled in oninit and loading part in
onload. someone please clarify
Thanks,
Sandeep

Kevin Spencer wrote:
>System.Web.UI.Page inherits System.Web.UI.Control. That is where you'll
find
those methods and events.

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

A pea rants as candy be sieving.

"SandyIsCool" <sa*************@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegr oups.com...
Hi,
I am newbie to asp.net. I have small doubt regarding page life cycle.
MSDN documentaion says that init event does blhah, blah load event
does blah blah etc. But Id ont see any init or load event handlers in
base page class. Are there any handlers for these with different names.
Or Page
class does not have any methods for these at all.

One more suppporting point for me is that the signature for pageload
event handler does not have either overrides or new keyword which goes
to show that page_load is a fresh method and does not have base classs
implementations.

Please let me know where exactly is page initialization ands loading
will be done in base page class
Thanks,
Sandey

Dec 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Prince Kumar | last post by:
When running LOAD with "ALLOW READ ACCESS", I get the following error if select is running againt the table (isolation UR). load.sql --------- db2 load from /u02/data/dly_d040817_test.dat of...
3
by: Karl M | last post by:
Hi everyone, I just notice some strange behaviors on the MS C++ compiler regarding struct default constructor, see the example bellow: struct MyStruct { int a; }; class MyClass { public:
2
by: Sam | last post by:
I have a custom control (MyTextBox - taken from Microsoft website) that implements the IPostBackDataHandler interface. It is added to the controls collection of a placeholder control during the...
7
by: Dan Nash | last post by:
Hi guys Ok, i have an aspx with a user control. In the user controls pageload i set a property (mystring = "test";). i then want to access that from the page_load of the aspx thats using the...
7
by: UJ | last post by:
I've got a page with a user control on it. While the page is loading, it needs to check certain conditions of the user object to enable/disable things on the screen. Currently in the page_load of...
2
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106"....
1
by: GeezerButler | last post by:
According to msdn, this method throws XmlException when "There is a load or parse error in the XML. In this case, the document remains empty." I cannot understand the difference between load...
8
by: SM | last post by:
Hello, I wrote a Javascript function that loads a xml file to access the data. After the loading of the xml file, the function init() is called (for testing purposes im only returning the number...
0
by: aravindsrinivasan | last post by:
here is my script #!/bin/ksh db2 connect to acqr1653 user username using password db2 set integrity for cqr.plant_audit_fam off no access cascade immediate db2 load from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.