Search code examples
asp.netwebprecompiledc#

missing .cs files in precompiled website with c# in asp.net


I need to change the code of some asp.net application but the application is missing its .cs files, there are only .aspx files. As I read in google, I understand that the application is a precompiled website. I am not too familiar with it so the question is, can I somehow retrieve the code-behind .cs files of this application because I need to change some functions there. Surely there is a way I can access them or retrieve them somehow?

Thanks in advance,

Greg


Solution

  • If you have a precompiled website, you will not be able to access the original .cs files. They are compiled into assemblies, that you will find in the bin folder. If you cannot get the original .cs files from somewhere; then you can try using Reflector for reading the code. Just keep in mind that what you are seeing through Reflector will be equivalent code, not the original code.