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.
精彩评论