开发者

ASP.Net Custom Control use embeded resource filename in a script?

I have a custom control that has some embedded resources. I need to be able to reference some of the embedded material outside the control in JavaScript. So let's say I have an image file embedded in the control and I have a script outside the control that will do something with that file. How do I reference that file name outside the control?

开发者_如何学编程

Update: Not sure if this is even possible and I have not found any information on it. Anyone have an idea? Maybe I create functions inside the embedded JS to get access to those files?


Is this what you are looking for?? It looks like you can use the GetWebResourceURL from the ClientScriptManager class to do this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜