Why compile a Web Application

  • Thread starter Thread starter Jarod_24
  • Start date Start date
J

Jarod_24

I've been working with a ASP.Net Web application project and it' ASP-NEt
pages and the classes that you create seems to work without compiling the
project. so my question is: why compile it? The whole thing is then reduced
to a .dll file and i don't wee how you're gonna be using that as a website.
 
If you don't pre-compile it then it just gets compiled on the fly the first
time the page is accesses. Nevertheless, it ALWAYS turns into compiled code
in a DLL. There is no interpreter engine like there was for legacy ASP.
 
Jarod_24 said:
I've been working with a ASP.Net Web application project and it' ASP-NEt
pages and the classes that you create seems to work without compiling the
project. so my question is: why compile it? The whole thing is then reduced
to a .dll file and i don't wee how you're gonna be using that as a
website.

If you don't compile it, the web server will, and it will delay the first
request.

DLL's can be easily used in an ASP.NET website, you can just upload them
to the bin folder and it will work.

If you use codebehind, you can even omit the codebehind .vb or .cs
files once they have been compiled. Only the .aspx file and the dll are
needed on the server.
This also helps in keeping your code hidden from your customers.

If you really want to speed things up, you can create a native image
of your dll's with the NGEN utility.
 
Jos said:
website.

If you don't compile it, the web server will, and it will delay the first
request.

DLL's can be easily used in an ASP.NET website, you can just upload them
to the bin folder and it will work.

If you use codebehind, you can even omit the codebehind .vb or .cs
files once they have been compiled. Only the .aspx file and the dll are
needed on the server.
This also helps in keeping your code hidden from your customers.
codebehind?

If you really want to speed things up, you can create a native image
of your dll's with the NGEN utility.

NGEN ?
 
Jarod_24 said:
codebehind?

Codebehind is the technique used by Visual Studio.NET, where the page
contains only the layout and a reference to a codebehind file.
This file (.vb or .cs) contains only the code.
This is as opposed to Web Matrix, which generates so-called inline code,
where the code sits in the aspx file between said:

A utility that comes with the dotNET framework (the full version, not
the redistributable).
 
If you really want to speed things up, you can create a native image
of your dll's with the NGEN utility.

Although you'll probably want to do the NGEN on identical hardware as the
server is using to ensure that you get all of the possible optimizations...

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top