Reputation: 21
When I view an ascx file from Sitecore File Manager and it displays something like CodeBehind="Promo Downloads.ascx.cs in the header, but It doesn't seem to exist. There is an asp:Literal control I'm trying to figure out where it's coming from.
Upvotes: 0
Views: 1177
Reputation: 3216
.cs files are compiled into a dll and will/shouldn't be available in the Sitecore solution using the code behind model. This only happens if you use the old code file model.
If you want to see the code for this then you'll need to view the original source code or decompile the dll.
To decompile the URL: The dll will be in the /bin folder. To find out which dll, look at the namespace in the .ascx file - the name of the dll should be the first part of the namespace.
Once you've found the dll, use dotpeek https://www.jetbrains.com/decompiler/ to examine the code.
Upvotes: 2