1

Resolved

breadcrumb.gif, 404 Not Found

description

In /web/catalog.aspx?cid=12345 rendered HTML.
 
The breadcrumb.gif is showing as "~/App_Themes/dashCommerce/images/icons/breadcrumb.gif"
instead of "/App_Themes/dashCommerce/images/icons/breadcrumb.gif"

comments

katipunan wrote Aug 25, 2011 at 7:36 PM

from MS

Thank you for reporting this problem. By default, in ASP.NET 4.0, the menu uses css styles which affect the rendering.
To use the 3.5 behavior, please add the following to the <system.web> section of the web.config file in your application:

<pages controlRenderingCompatibilityVersion="3.5" />

wrote Aug 25, 2011 at 7:37 PM

katipunan wrote Aug 25, 2011 at 7:59 PM

Adding this "<pages controlRenderingCompatibilityVersion="3.5" />" in web.config messes up the CSS.

As a workaround, we added an OnInit in ASP:Menu Event.

protected void categoryCrumbs_init(object sender, EventArgs e){
 string staticBottomSeparatorImageUrl = categoryCrumbs.StaticBottomSeparatorImageUrl;
 staticBottomSeparatorImageUrl = staticBottomSeparatorImageUrl.TrimStart('~');
 categoryCrumbs.StaticBottomSeparatorImageUrl = staticBottomSeparatorImageUrl;
}

wrote Feb 14, 2013 at 12:29 AM

wrote May 16, 2013 at 5:12 AM

wrote May 16, 2013 at 5:12 AM

wrote Jun 14, 2013 at 7:49 AM