GetWebResourceUrl equivalent for ASP.NET MVC?
In the old days of ASP.NET, one could use Page.ClientScript.GetWebResourceUrl to get开发者_运维问答 a URL that would extract an embedded resource via the WebResource.axd HttpHandler.
In MVC, there doesn't seem to be ClientScript (or Page, for that matter). I can't find something comparable to this. I scoured MSDN, and I even googled it on bing and didn't find much.
Although I could certainly write this functionality and perhaps have a /Scripts/ controller - I wanted to see if there was a direct equivalent or preferred pattern on how to implement this functionality. Thanks
Take a look ASP.NET MVC - Extracting Web Resources, hope this helps.
精彩评论