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?
-
8*"tell me as soon as possible"* ?? – huMpty duMpty Apr 01 '14 at 16:08
-
3If 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 Answers
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.

- 3,885
- 3
- 22
- 36
-
-
I have updated my answer. You can use the tools to get the code. – Behroz Sikander Apr 02 '14 at 08:42
-
-
-
i use the reflector but its give code but what i changes in code that do not apply on design page – Gurpreet Gill Apr 02 '14 at 10:39
-
Well you need to rebuild the dll and replace the dlls in the bin folder with new one. – Behroz Sikander Apr 02 '14 at 10:46
-
Yes, client want to change in website but in dll have another important files i need to change in one file only i change with help of reflector but its do not apply in dll/website – Gurpreet Gill Apr 02 '14 at 11:31
-
You have changed the dll code and replaced the dll in the published folder and still the website is not showing your new change ? – Behroz Sikander Apr 02 '14 at 11:43
-
-
i saw your website(http://techroz.com) its nice but i can't explore now. – Gurpreet Gill Apr 02 '14 at 11:52
-
Well cannot say anything. Have u placed the dll in release and debug folders ? – Behroz Sikander Apr 02 '14 at 11:54