I am new to Sharepoint. I am using Sharepoint designer 2013. There is an existing ASP.NET application hosted in IIS. I am able to find Login.aspx in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\customLoginPage path. But how to locate it's corresponding Login.aspx.cs file?

I know we don't host .cs file. We register it in GAC. But I want to take this file on my local machine, make some changes and re-host the application. How can I do it? Please help.

1 Answer 1


You need to get the source code (which will include both the aspx and cs files). The server will have the compiled version which you will not be able to modify. If you've lost the source code, you can use a tool like .NET Reflector or similar to decompile it, but it will not be a one-to-one match between the original source code and the decompiled source code.

  • Thanks. Yahh. I know I can use Reflector but this is not the ideal way. I am new to the project and not able to find source code.
    – KFC
    Jan 3, 2017 at 18:04
  • Then you're stuck in that case. You've only got access to compiled code which isn't editable, of course.
    – user6024
    Jan 3, 2017 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.