Is there a way to make ResolveClientUrl() work in external JS files? I was expected that it would because this file IS included in ASPX page but this is not the case.
I found a rather ugly workaround – to include external JS file in ASPX page like this:
It works (ResolveClientUrl() actually resolves path) but I’ve never seen external JS files referenced like that and am not sure this is the way to go.
You can try the code which are provided by the link below:
Try just placing a code-block within your actual <script> tag and wrap your path within the ResolveUrl() method as seen below :