This project is read-only.


breadcrumb.gif, 404 Not Found


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"


katipunan wrote Aug 25, 2011 at 8: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 8:37 PM

katipunan wrote Aug 25, 2011 at 8: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 1:29 AM

wrote May 16, 2013 at 6:12 AM

wrote May 16, 2013 at 6:12 AM

wrote Jun 14, 2013 at 8:49 AM