S
Scott M.
If you define your methods, properties and events in your code-behind file
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.
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.