Minibasket on Category.aspx Page?
Posted: Thu Aug 21, 2008 12:00 am
I have successfully added the minibasket control to the bottom of the Standard Sidebar 1 scriptlet, and changed Standard Sizebar 1 to appear on the left side of Category.aspx.
Everything is fine, except that when a user selects an "add to cart" link from CategoryGridPage.ascx, the mini-basket isn't updated. If I continue to select additional items ("add to cart" again), the basket will begin to update, but it's always behind by one product. In other words, the most recently added item is never shown in the basket.
I've traced this a bit, and seen that the problem is due to the fact that the minibasket's important event (MiniBasket.aspx.cs's Page_PreRender event) happens *before* the AddToCart() event actually occurs. I'm not enough of an ASP.NET expert yet to figure out why these event are occurring in the wrong order. I'm guessing, though, that it has to do with the AJAXy nature of the Category.aspx page.
Any help would be greatly appreciated,
Zach
Everything is fine, except that when a user selects an "add to cart" link from CategoryGridPage.ascx, the mini-basket isn't updated. If I continue to select additional items ("add to cart" again), the basket will begin to update, but it's always behind by one product. In other words, the most recently added item is never shown in the basket.
I've traced this a bit, and seen that the problem is due to the fact that the minibasket's important event (MiniBasket.aspx.cs's Page_PreRender event) happens *before* the AddToCart() event actually occurs. I'm not enough of an ASP.NET expert yet to figure out why these event are occurring in the wrong order. I'm guessing, though, that it has to do with the AJAXy nature of the Category.aspx page.
Any help would be greatly appreciated,
Zach