469,362 Members | 2,505 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,362 developers. It's quick & easy.

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 2597
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by wASP | last post: by
1 post views Thread by Christian | last post: by
6 posts views Thread by Dot net work | last post: by
4 posts views Thread by awalker1 | last post: by
12 posts views Thread by Nathan Sokalski | last post: by
5 posts views Thread by tshad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.