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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With