Ive been asked to make some changes to a .Net Web Application. However, the client seems to have "Lost" the precompiled source code.
Traditionally, a .Net Web Application Project must have the codebehind compiled into a DLL, whereas a .Net Website Project can compile itself into runnable code when its requested by the browser.
Since I dont have the original source code to this project, I cant add new code to the DLL. I created a new ascx.cs codebehind file, placed it in the same directory as the ascx page and referenced it from the ascx page.
However, the ascx page can not detect this file. I suspect its because the codebehind is not part of the dll. Is there a way to force the web application to compile the codebehind when its requested by the browser just like a .Net Website project.
I know this is terrible practice and most will say dont do it, so Im also open to alternative suggestions as well. I would like to tell the client I cant work without the source, but its not my decision.