开发者

GetWebResourceUrl equivalent for ASP.NET MVC?

开发者 https://www.devze.com 2023-02-25 18:43 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消