I am quite new to .NET development and I am just wondering how does it work?
My undermentioned points are:
pagename.aspx
page, assuming I have the development required web application (this is not my concern, what is developed)folderdelopyed
.pagename.aspx.cs
and pagename.aspx.designer.cs
files.My question is if folderdelopyed
does not contain .cs
file, then how does it work to run the segment of code which I have written in this file called PageName.aspx.cs
?
The code in your cs files gets compiled into a dll.
For Web Application projects this is one dll
For Web Site projects, this is a dll per page.
All of the code is now in the dll's in the bin folder of the website.
You can use a tool like ILSpy (http://wiki.sharpdevelop.net/ILSpy.ashx) to look inside the dll's and see your code.
In the old days, for classic ASP, the script used to be embedded in your page - a mix of code and HTML, and was interpreted at runtime.
I like the new way more :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With