It took me a while to realize the following, which was generated by VS after dragging and dropping the script file to a view file, does not work
Instead, the following works:
However, the former works perfectly for another view file. I am wondering if any expert could shed some light on this.
My current hunch is the correct path without using helper Url.Content() depends on a page's URl not where the view file is located.
View Complete Post