a question about understanding asp.net environment

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I have understood in the way that when a page is being displayed in the
browser there is not code
running on the server that is acting for that particularly page.
is that correct ?

//Tony
 
I have understood in the way that when a page is being displayed in the
browser there is not code
running on the server that is acting for that particularly page.
is that correct ?

No.

An ASP.NET page is compiled to C#/VB.NET that is compiled
to MSIL that is JIT compiled into native code in memory.

And that get executed when the page is requested.

Arne
 
Arne Vajhøj said:
No.

An ASP.NET page is compiled to C#/VB.NET that is compiled
to MSIL that is JIT compiled into native code in memory.

And that get executed when the page is requested.

Arne
yes. Assume that the page is displayed in the brower for 2 minutes without
the user doing anything
will there be any code for this page being executed on the server during
these two minutes ?
I mean that as soon as the user request a page or postback the code will be
executed on the server
This must be correct ?

//Tony
 
yes. Assume that the page is displayed in the brower for 2 minutes without
the user doing anything
will there be any code for this page being executed on the server during
these two minutes ?
I mean that as soon as the user request a page or postback the code will be
executed on the server
This must be correct ?

Yes.

The code is (multi) compiled for first request, run for that request and
will not be used until next request for that page.

(i am ignoring the possibility of the page violating all best practices
and starting a thread or timer)

Arne
 
Back
Top