ASP.NET MVC routing and paths is js files
        Posted  
        
            by HiveHicks
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by HiveHicks
        
        
        
        Published on 2010-06-02T12:13:37Z
        Indexed on 
            2010/06/03
            8:44 UTC
        
        
        Read the original article
        Hit count: 242
        
Hello, we're facing a problem now. We have a pretty big page with a loooong inline script, which does all the work. We now want to obfuscate it and use it as a separate .js file. But the problem is that we have paths which are generated by Url helper (Url.Content()). So what is the best way to separate js file from the page and not using hard-coded path strings?
© Stack Overflow or respective owner