Welcome Guest Search | Active Topics | Members | Log In | Register

What happens after runtime? Options · View
rn5a@rediffmail.com
Posted: Sunday, October 07, 2007 2:09:38 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 02:09:38
Date: Sun, 07 Oct 2007 09:09:38 -0700

The different Page events in the page life cycle like Page_PreInit,
Page_Init, Page_Load etc. - are they different stages of the runtime
process?

Does a server send back the HTML output of an ASPX page to the browser
immediately after the runtime or are there any processes involved in
between the runtime & the time when the server sends the HTML output
back to the browser?

Thanks

rn5a@rediffmail.com
Posted: Sunday, October 07, 2007 8:04:56 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 08:04:56
Date: Sun, 07 Oct 2007 15:04:56 -0700

On Oct 7, 3:37 pm, "Mark Fitzpatrick" <markf...@fitzme.com> wrote:
> The PreInit, Init, Load are all events that are raised at different times
> during the processing of a page. The output to HTML usuually happens, I
> believe, during the Render event. You should be able to google for a some
> good information on the page event hierarchy. User controls will also have a
> similar hierarchy though they won't have all events. Knowing which events
> fire at which times is very useful, especially when trying to communicate
> between pages and user controls since passing information between controls
> and a page can be a tricky matter of timing.
>
> --
> Hope this helps,
> Mark Fitzpatrick
> Microsoft MVP - FrontPage
>
> <r...@rediffmail.com> wrote in message
>
> news:1191773378.483927.312420@19g2000hsx.googlegroups.com...
>
>
>
> > The different Page events in the page life cycle like Page_PreInit,
> > Page_Init, Page_Load etc. - are they different stages of the runtime
> > process?
>
> > Does a server send back the HTML output of an ASPX page to the browser
> > immediately after the runtime or are there any processes involved in
> > between the runtime & the time when the server sends the HTML output
> > back to the browser?
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -

Thanks Mark for the response. Actually I am aware of the various
events that are raised when a request (new or postback) is made to a
server. What I would like to know is the time during which these
events fire - is that time known as the runtime?

For e.g. in late binding, variables that are of type "Objects" are not
processed until runtime. Hence one can use them to represent any type
of object one wants. This means such variables are processed between
the runtime & the time when the server sends the compiled page back to
the client browser. Do the different Page events fire during this
time? What happens during this time?

Thanks once again,

Regards,

Ron

Mark Fitzpatrick
Posted: Sunday, October 07, 2007 10:37:20 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 10:37:20
Date: Sun, 7 Oct 2007 15:37:20 -0500

The PreInit, Init, Load are all events that are raised at different times
during the processing of a page. The output to HTML usuually happens, I
believe, during the Render event. You should be able to google for a some
good information on the page event hierarchy. User controls will also have a
similar hierarchy though they won't have all events. Knowing which events
fire at which times is very useful, especially when trying to communicate
between pages and user controls since passing information between controls
and a page can be a tricky matter of timing.


--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

<rn5a@rediffmail.com> wrote in message
news:1191773378.483927.312420@19g2000hsx.googlegroups.com...
> The different Page events in the page life cycle like Page_PreInit,
> Page_Init, Page_Load etc. - are they different stages of the runtime
> process?
>
> Does a server send back the HTML output of an ASPX page to the browser
> immediately after the runtime or are there any processes involved in
> between the runtime & the time when the server sends the HTML output
> back to the browser?
>
> Thanks
>


rn5a@rediffmail.com
Posted: Sunday, October 07, 2007 1:09:33 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 13:09:33
Date: Sun, 07 Oct 2007 20:09:33 -0700

On Oct 7, 6:14 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> <r...@rediffmail.com> wrote in message
>
> news:1191794696.976780.84520@57g2000hsv.googlegroups.com...
>
> > What I would like to know is the time during which these events fire -
> > is that time known as the runtime?
>
> I think perhaps you're getting bogged down by nomenclature...
>
> Runtime is a term which is used to denote when an application (WinForms or
> WebForms) is actually running as opposed to when it is being designed /
> developed...
>
> E.g. when you add webcontrols to your markup in the designer, they are said
> to be created at *design-time*.
>
> However, when you add controls dynamically while the app is actually
> running, they are said to be added at *runtime* because they don't exist
> until the app is runnning...
>
> No events fire at design-time, because the app isn't actually running at
> design-time...
>
> Runtime simply means "when the app is running"...
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net

> I think perhaps you're getting bogged down by nomenclature...

I guess you are right.....

I learnt the term "late binding" from a book which I am using to learn
ASP.NET. As stated in the book (& as stated in my previous post), late
binding means variables of type "Object" are not processed until
runtime but then variables of other data types are also not processed
until runtime i.e. until the app is run. Variables, let them be of any
data type, will be processed only when the app is being run (obviuosly
never at design time). So why does the book specifically mention that
*variables of "Object" data type are not processed until runtime*?

Also, if I am not wrong, it can be concluded from the statement given
in the book that variables of data types other than the "Object" data
type are bound early (early binding) Irrespective of whether
variables are bound early or late, the binding takes place during
runtime. So does late binding mean variables of "Object" data type are
processed only AFTER variables of all other data types have been
processed? If not, then what's the difference between late binding &
early binding?

Ron

Juan T. Llibre
Posted: Sunday, October 07, 2007 2:00:18 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 07/10/2007 14:00:18
Date: Sun, 7 Oct 2007 18:00:18 -0400

Please review the ASP.NET page lifecycle :

http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
<rn5a@rediffmail.com> wrote in message news:1191773378.483927.312420@19g2000hsx.googlegroups.com...
> The different Page events in the page life cycle like Page_PreInit,
> Page_Init, Page_Load etc. - are they different stages of the runtime
> process?
>
> Does a server send back the HTML output of an ASPX page to the browser
> immediately after the runtime or are there any processes involved in
> between the runtime & the time when the server sends the HTML output
> back to the browser?
>
> Thanks
>


Mark Rae [MVP]
Posted: Monday, October 08, 2007 1:14:13 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 08/10/2007 01:14:13
Date: Mon, 8 Oct 2007 00:14:13 +0100

<rn5a@rediffmail.com> wrote in message
news:1191794696.976780.84520@57g2000hsv.googlegroups.com...

> What I would like to know is the time during which these events fire -
> is that time known as the runtime?

I think perhaps you're getting bogged down by nomenclature...

Runtime is a term which is used to denote when an application (WinForms or
WebForms) is actually running as opposed to when it is being designed /
developed...

E.g. when you add webcontrols to your markup in the designer, they are said
to be created at *design-time*.

However, when you add controls dynamically while the app is actually
running, they are said to be added at *runtime* because they don't exist
until the app is runnning...

No events fire at design-time, because the app isn't actually running at
design-time...

Runtime simply means "when the app is running"...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mark Rae [MVP]
Posted: Monday, October 08, 2007 10:22:14 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 08/10/2007 10:22:14
Date: Mon, 8 Oct 2007 09:22:14 +0100

<rn5a@rediffmail.com> wrote in message
news:1191812973.476057.37770@o3g2000hsb.googlegroups.com...

> I learnt the term "late binding" from a book which I am using to learn
> ASP.NET. As stated in the book (& as stated in my previous post), late
> binding means variables of type "Object" are not processed until
> runtime but then variables of other data types are also not processed
> until runtime i.e. until the app is run. Variables, let them be of any
> data type, will be processed only when the app is being run (obviuosly
> never at design time). So why does the book specifically mention that
> *variables of "Object" data type are not processed until runtime*?

See below...

> Also, if I am not wrong, it can be concluded from the statement given
> in the book that variables of data types other than the "Object" data
> type are bound early (early binding) Irrespective of whether
> variables are bound early or late, the binding takes place during
> runtime. So does late binding mean variables of "Object" data type are
> processed only AFTER variables of all other data types have been
> processed? If not, then what's the difference between late binding &
> early binding?

Early binding and late binding were important before .NET, but are largely
irrelevant now...

Early binding means defining a variable of a specific type because you know
at design-time what type of variable you need...

DataSet MyDataSet = new DataSet();

Late binding means defining a variable of a non-specific type (usually an
Object variable) because all you know at design-time is that you will need a
variable of one sort or another, but can't know what *specific* type until
runtime...

object MyDataObject = null; // design-time

protected void Page_Load(object sender, EventArgs e) // runtime
{
if (SomeCondition)
{
MyDataObject = new DataSet();
}
else
{
MyDataObject = new SqlDataReader();
}
}


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.099 seconds.