1

My client give me his FTP I'm download source code. Its published. How can i do changes in code. My client have not the Unpublished code. What can i do?

Gurpreet Gill
  • 174
  • 1
  • 13
  • 8
    *"tell me as soon as possible"* ?? – huMpty duMpty Apr 01 '14 at 16:08
  • 3
    If you mean the site is compiled and you need to make changes to the compiled code, you need to ask your client for the source code. If he doesn't have it, he needs to get it from his original developer. If not possible you can try to decompile with Red Gate .net Reflector – Dmitriy Khaykin Apr 01 '14 at 16:10
  • If you're asking how to make changes to compiled asp.net code...you're out of luck. – Smeegs Apr 01 '14 at 16:11
  • [dotnet dll decompile and change the code](http://stackoverflow.com/questions/7388985/dotnet-dll-decompile-and-change-the-code)?? – huMpty duMpty Apr 01 '14 at 16:12
  • i'm decompiled the dll but what i change its do not apply in website? – Gurpreet Gill Apr 02 '14 at 05:29

1 Answers1

1

Well, you need to check a few things

1- Check the code and see whether you can find .cs files with you .aspx files. If you can find them then it means that the website was deployed in Debug mode and you can atleast have the code of all the asp.net forms.

And if you cannot find the .cs files then it was deployed in Release mode and you are screwed.

2- Check the debug/release folder of the code and see whether you can find some custom DLL's. (By custom, i mean DLL's that are not from Microsoft and any third party). If you can find some custom DLL's then you cannot do anything because you donot have the code for the DLL's. (So, you do not have the Dll project).

You can still retrieve the code of DLL's by using some tools but that is not recommended.

EDIT:

You cannot get the exact code, but you can get a decompiled version of it.

The most popular (and best) tool is Reflector, but there are also other .Net decompilers (such as Dis#). You can also decompile the IL using ILDASM, which comes bundled with the .Net Framework SDK Tools.

Behroz Sikander
  • 3,885
  • 3
  • 22
  • 36