开发者

Append filename to Img src attribute using resource file

开发者 https://www.devze.com 2023-04-05 12:19 出处:网络
When I try to append the image name onto the end of the <%$ Resources:LocalizedText, MyKey %> the server doesn\'t build the path 开发者_如何学JAVAat all.

When I try to append the image name onto the end of the <%$ Resources:LocalizedText, MyKey %> the server doesn't build the path 开发者_如何学JAVAat all.

This is what I'm doing and it's not working:

<img id="Img2" runat="server"  src="<%$ Resources:LocalizedText, ImagesPath %>feature_LED.jpg" />

Is there any way to append?


this will work instead

src="<%= Resources.LocalizedText.ImagePath %>

0

精彩评论

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

关注公众号