开发者

accessing an image in a theme directory from a link tag

I have a link tag which assignes a bookmark icon to the page:

<link rel="shortcut icon" href="/App_Themes/Default/images/bookmark.ico" type="image/x-icon"/>

Currently, it's hard coded to the Default theme, but I want it to change based on the开发者_运维知识库 theme that is applied to the web app. How can I point to the current theme directory?


this.Theme returns the string property of the currecntly selected theme. You need to assemble the href Attribute yourself using string operations.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜