BV Commerce Forum
»
BV Commerce Support
»
General Support
»
asp:HyperLink ImageUrl property doesn't resolve correctly
Rank: Member
Joined: 6/11/2007(UTC) Posts: 12
|
When using the tilde (~) it doesn't resolve correctly
Ex.
ImageUrl="~/BVModules/Themes/Scene/images/bag.png"
Is there a fix for this?
thanks - wg
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
What does it resolve to? What did you want it to resolve to? |
|
|
|
|
Rank: Member
Joined: 6/11/2007(UTC) Posts: 12
|
As an example, I have the follow asp:hyperlink included in a custom theme's header'ascx:
<asp:HyperLink ID="lnkAboutTab" runat="server" ImageUrl="~/BVModules/Themes/Scene/images/top_menu_about.gif" NavigateUrl="~/default.aspx" />
The path to this user control is: ... BVModules\Themes\Scene\Controls.
Now the ImageUrl resolves correctly when looking at a page like the home page (and most others). But any time I go to a category or to view a product, ImageUrl doesn't resolve correctly. In such pages it resolves to something like:
http://localhost/Scene.Web/BVModules/CategoryTemplates/BVModules/Themes/Scene/images/top_menu_about.gif
instead of ...
http://localhost/Scene.Web/BVModules/Themes/Scene/images/top_menu_about.gif
|
|
|
|
Rank: Member
Joined: 12/3/2007(UTC) Posts: 5
|
I'm having the same problem. Did you ever find a solution?
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.