How to display source code in .ascx
I have an ASP.Net MVC application that I want to debug jquery / javascript code in Chrome. But I can only see the source code in .aspx files, not in .ascx files. Since some jquery / javascript codes are in .ascx files, I would like to know how to display source code in .ascx in Chrome. Thank you.
To see the source code of a file ascx
(which is a partial view or custom control) in a browser, you must first add that file ascx
to the file aspx
(which is a page) and then ask aspx
Google Chrome to tell the file from your browser.
You cannot debug ascx files in any browser, because they actually render in HTML before they render to clients / browsers.