Codebehind?

  • Thread starter Thread starter Arsalan
  • Start date Start date
A

Arsalan

Where is Codebehind usually uploaded? Suppose I have aspx pages containing
codebehind in different directories for e.g

myweb/aaa
myweb/bbb


Where do i store the compiled codebehind?
 
Hi,

You have your code behind files anywhere in your system. But, when you
compile your web application, all the codebehinds from different locations
will be compiled as a dll and it will available under the bin directory of
your application directory.

so you don't need to upload your code behind files... just the content of
bin directory is enough.

Cheers,

Jerome. M
 
You don't "upload" codebehind to the production server - if that's what you
mean. When you compile your code all the codebehind get compiled into the
..dll and aren't needed. Not sure if that's what you mean?

Karl
 
Bin Directory.


If your web host provider supports Applications then you will upload
your compiled assemby(s) which are located in your bin directory as
*.dll files to the bin directory of your web host. It is recommended
that you DO NOT upload your code to your web host provider unless your
web host does not support virtual applications.

This will hopefully get even easier with .NET 2.0's deploy methods.
 
Ok, that means one single line of code change in code-behind means i've to
upload the whole DLL ?
 
Most DLL's for large projects weign at a whopping 300-700kb. Extremely
extremly small. Your resultant code is going to be alot bigger. if you
make 10 changes to 10 differnet source code files you would have to
upload all 10 files and then asp.net would have to recompile. While
this is possible both the preferred and easier method is to recompile
your project and upload the dll. Multiple changes, one file to be
uploaded.
 
Back
Top