473,480 Members | 2,333 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Page_INIT and Page_Load What are they the same?

Hello,

How should I use Page_init and Page_load with making ASP.NET Apps?

Thanks,

Jack
Nov 18 '05 #1
4 2717
"jack" <ja**@mrolinux.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

How should I use Page_init and Page_load with making ASP.NET Apps?


Jack,

The two are not the same at all. See The ASP.NET Page Object Model
(http://msdn.microsoft.com/library/de...-us/dnaspp/htm
l/aspnet-pageobjectmodel.asp?frame=true) in MSDN.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
Hello,

How should I use the two/what type of code should go in each?

Thanks,

Jack
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:ev**************@TK2MSFTNGP09.phx.gbl...
"jack" <ja**@mrolinux.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

How should I use Page_init and Page_load with making ASP.NET Apps?
Jack,

The two are not the same at all. See The ASP.NET Page Object Model

(http://msdn.microsoft.com/library/de...-us/dnaspp/htm l/aspnet-pageobjectmodel.asp?frame=true) in MSDN.
--
John Saunders
johnwsaundersiii at hotmail

Nov 18 '05 #3
In your Page_Load, everything relating to the Controls should be ready.
So you can start writing your code in the Page_Load Event to Get and
display the Actual Form whether from a Database or otherwise. After this
the Postback event for the control will be Fired. So you might think
about how the code here might affect those events. Assuming that you
have a dynamically loaded control, then you would have to create that in
the Page_Init event to continue to use it here and later on.

Regards,

Trevor Benedict R
MCSD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
"jack" <ja**@mrolinux.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
Hello,

How should I use the two/what type of code should go in each?
Jack,

Are you using Visual Studio.NET?

In either case, I suggest that you should ignore the Init event completely.
A time may come when it no longer works for you to ignore it. That will be
the time to use it. Until then, you probably want to use the Load event.
--
John Saunders
johnwsaundersiii at hotmail
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:ev**************@TK2MSFTNGP09.phx.gbl...
"jack" <ja**@mrolinux.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Hello,

How should I use Page_init and Page_load with making ASP.NET Apps?


Jack,

The two are not the same at all. See The ASP.NET Page Object Model

(http://msdn.microsoft.com/library/de...-us/dnaspp/htm
l/aspnet-pageobjectmodel.asp?frame=true) in MSDN.
--
John Saunders
johnwsaundersiii at hotmail


Nov 18 '05 #5

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

Similar topics

9
17594
by: wASP | last post by:
Hello again to all of you geniuses, I'm having a problem trying to load dynamic controls at the initialization phase. I've read the docs, and I thought I had it figured out:...
1
19655
by: Christian | last post by:
Hi, what is the purpose of having a Page_Init() AND a Page_Load() event handler 'cause both will always be executed on loading a page ? What code do you typically put in one event or in the...
4
6709
by: Chuck Ritzke | last post by:
Hi, I've searched the newsgroup and other sources to understand how to handle runtime controls and see I'm not the only one who's confused, but I'm still not quite sure of the best way to handle...
6
5928
by: Dot net work | last post by:
I've read quite a few threads on these groups about this. When someone says the following: "My Page_Load gets called twice on a button click postback" The replies are: "Do you have...
4
1556
by: awalker1 | last post by:
Hi all, I have a datagrid and a drop down list on my page. The DataGrid is created dynamically at runtime to contain columns based on the item that the user has selected from the drop down...
12
17349
by: Nathan Sokalski | last post by:
What is the difference between the Page_Init and Page_Load events? When I was debugging my code, they both seemed to get triggered on every postback. I am assuming that there is some difference,...
6
1777
by: ad | last post by:
Hi, What is the difference between Page_init and Page_Load event?
2
4099
by: RajW | last post by:
In ASP.NET VB, what is the difference between "Page_Load" and "Page_Init"? Thanks, /*Raj*/
5
2324
by: tshad | last post by:
I have a PageInit.ascx that I want to put in all my pages and have it execute only once during the "not IsPostback" section. I also need it to execute first before anything else. I have it set...
0
7051
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
6915
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
7097
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...
1
6750
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...
0
6993
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...
0
5353
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,...
1
4794
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...
0
4493
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...
0
1307
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 ...

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.