very basic question

  • Thread starter Thread starter Scott M.
  • Start date Start date
S

Scott M.

If you define your methods, properties and events in your code-behind file
it will get compiled within the ASP.Net app, but, if I define it in a
server script inside an .aspx/.ascx file, will it get compile within the
app too or it will be compiled in runtime just when it's being used?

If you define your code in a code-behind file, it will be compiled to
Intermediate Language (IL) in the form of a .dll and then at run-time, it
will Just In Time (JIT) compile to machine code.

If you define your code in the .aspx/.ascx file directly, there is no .dll,
but the code is still compiled at run-time. A run-time .dll is created.
 
Hi, I'm reading the ASP.Net documentation, the compiled code part, and I got
a question that could not find a "real" answer for it:

If you define your methods, properties and events in your code-behind file
it will get compiled within the ASP.Net app, but, if I define it in a server
script inside an .aspx/.ascx file, will it get compile within the app too or
it will be compiled in runtime just when it's being used?

PS: I'm asking this because when I read about Control Templates with
DataBind, MS says that, when implementing both in the HTML source, it will
be interpreted (late bound dataBind), and I guessed if it would be the same
for scripts but could not find the answer.

Thanks a lot,
Regards,
Victor
 
Back
Top