Website Asp.NET compile process

Note: I am writing s website in C# (Csharp)

If you have all your .aspx files and .aspx.cs files in one folder on your production web server, am I right by saying all the .aspx files in that folder get compiled into one dll and all the .aspx.cs files get compiled into another dll?

So if you have 2 folders that make up the website with .aspx and .aspx.cs files, the aspnet compiler creates a dll for the .aspx files and a dll for the .aspx.cs files for each folder?
So probably in this case you have 4 dlls making up the Website. Of course that excludes the APP_Code folder code.
Lawrence AverySystem DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
A .dll contains compiled code. .aspx files do not contain compiled code, they contain html mixed with script code. So they are not compiled into .dll.

The .aspx files are kept as they are, as individual files. This is what is actually loaded when the user calls a page. They are the equivalent of .html files, except that they will call code in an asp dll.

The aspx.cs files contain the actual code. These are compiled into a .dll.

Look at the resulting web site after deployment, and you will see that the .aspx files are still there, while the aspx.cs files have been compiled in (usually) only one dll.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lawrence AverySystem DeveloperAuthor Commented:
ASP.NET:
I am talking Website not Web application.

However, I do believe whether it's a web application or Website, the .aspx files are eventually compiled so they can work with .apsx.cs ( code behind files).

I know ASP Classic is interpreted but ASP.NET Web pages are compiled.

I'll get back to you with more information so we can continue our discussion. Sorry it is late here.

Please see these weblinks about Website and WebApplications  - the default compile and the precompile.

http://msdn.microsoft.com/en-us/library/aa983464.aspx
http://msdn.microsoft.com/en-us/library/399f057w(v=vs.85).aspx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.