Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 224
Robert Seder Avatar asked Apr 14 '11 15:04

Robert Seder


1 Answers

Take a look ASP.NET MVC - Extracting Web Resources, hope this helps.

like image 147
Fatih Türker Avatar answered Nov 10 '22 16:11

Fatih Türker