开发者

accessing an image in a theme directory from a link tag

开发者 https://www.devze.com 2022-12-19 02:11 出处:网络
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\"/>

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

精彩评论

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