when I started with .net, I was using notepad to create applications - no,
I'm not joking
.
All .cs/.vb files had to be compiled through the command prompt using
csc.exe/vbc.exe
If you didn't specify a .cs/.vb file, it would need to be uploaded to the
web server as is.
A way of specifying whether the codebehind is compiled or not is in the Page
directive.
By default, visual studio uses:
CodeBehind="Page.cs" / CodeBehind="Page.vb"
But you can change this to
Src="Page.cs" / Src="Page.vb"
Then this code behind can be read on the web server without compiling it
into the .dll
This method is advantageous for a web application that is still in
development, or is constantly changing.
As you do not need to rely on the .dll to be compiled for every little
change (excluding .aspx changes).
However, by precompiling all code files, the app will runs faster, and there
are more debug options available
Having used both options, I much prefer the complete compilation method.
FYI
In .NET 2.0 you have the option now to completely compile an application
including .ASPX files.
This is quite exciting ITO speed, source security and version control.
Ersin Gençtürk said:
grant are you sure that any other way exists using the codebehind file
without compiling ? I don't think so.If it was a code snippet in the html
code you were right.