How do I call a javascript file that's embedded in a dll in my asp.net web application?

天大地大妈咪最大 提交于 2019-12-07 05:58:26

问题


In a library I am building for my asp.net, is it possible to embed a javascript file as an embedded resource and still be able to retrieve it via a URL call and/or script tag without creating a secondary ashx just to load the javascript?


回答1:


It's entirely possible.

A quick google came up with this really good tutorial Managing Your JavaScript Library in ASP.NET



来源:https://stackoverflow.com/questions/13608388/how-do-i-call-a-javascript-file-thats-embedded-in-a-dll-in-my-asp-net-web-appli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!