2.0: SIMPLE QUESTION

R

R.A.M.

I have a (sample) project 01-ClientScript of the following structure:

App_Data\ (empty dir)
App_GlobalResources\Resource.resx
Bin\ (empty dir)
Default.aspx
Default.aspx.vb (contains Page_Load)
web.config

when I open it in a browser (localhost/01-ClientScript) I can see
result produced by Page_Load from Default.aspx.vb.

Could you explain me please why it works because project is not
compiled (Bin\ is empty)?!
Thanks.
/RAM/
 
T

Tasos Vogiatzoglou

Dynamic compilation.

The page is compiled by the ASP.NET framework.

Tasos
 
B

bruce barker \(sqlwork.com\)

just like version 1.1, the bin folder is where you place dll's you want to
include with your site. In 1.1 VS built a codebehind dll in this folder. In
VS2005, asp.net compiles the codebehind file, not VS, so there is no dll in
the bin.

asp.net 2.0 (just like 1.1), compiles code to a temp folder, copies any bin
dlls to this temp folder, and runs from the temp folder. this allows code
updates. Also just like 1.1, every page is compiled to its own dll (unless
batch compiling is turned on). The difference between 1.1 and 2.0, is the
codebehind code is included in the page dll, instead of a shared codehind
dll (which pages inherited from).

asp.net 2.0 supports precompiling the site, but the dll will still be copied
and run from a temp folder.

if you have standard setup look in:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

you will find a folder per site. in the site folder, you'll find a folder
per compile, in this you'll find a folder per batch compile. in these
folders you will find all the souce files generated to build the page(s) and
the output dll's, plus copies of the bin dll's.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top