Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Page_INIT and Page_Load What are they the same? (http://www.velocityreviews.com/forums/t83933-page_init-and-page_load-what-are-they-the-same.html)

jack 07-31-2004 05:03 PM

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



John Saunders 07-31-2004 06:34 PM

Re: Page_INIT and Page_Load What are they the same?
 
"jack" <jack@mrolinux.com> wrote in message
news:ef4YBBydEHA.3944@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



jack 07-31-2004 07:58 PM

Re: Page_INIT and Page_Load What are they the same?
 
Hello,

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

Thanks,

Jack
"John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
news:evRfF1ydEHA.1356@TK2MSFTNGP09.phx.gbl...
> "jack" <jack@mrolinux.com> wrote in message
> news:ef4YBBydEHA.3944@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
>
>




Trevor Benedict R 07-31-2004 09:52 PM

Re: Page_INIT and Page_Load What are they the same?
 
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!

John Saunders 08-01-2004 04:39 PM

Re: Page_INIT and Page_Load What are they the same?
 
"jack" <jack@mrolinux.com> wrote in message
news:euwV6izdEHA.3016@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" <johnwsaundersiii@notcoldmail.com> wrote in message
> news:evRfF1ydEHA.1356@TK2MSFTNGP09.phx.gbl...
> > "jack" <jack@mrolinux.com> wrote in message
> > news:ef4YBBydEHA.3944@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
> >
> >

>
>





All times are GMT. The time now is 04:33 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57