Posted on: 8/25/2014 1:48:07 PM | Views : 313

hello everyone...How can I display AddtoCart counter on masterpage menuitem like just any online shopping website like for example eg. viewCart(1) need help...
here is what I have so far
If cart IsNot Nothing Then If cart.Items.Count = 1 Then 'Dim CartShp As New MenuItem(String.Format("Cart ({0})", "Theres only one item in your shopping Cart"), "", "", "~/ViewCart.aspx?") 'MyMasterMenu.Items.Add(CartShp) DirectCast(Master.FindControl("Label1"), Label).Text = String.Format("Cart ({0})", "Theres only one item in your shopping Cart") ElseIf cart.Items.Count > 1 Then 'Dim CartShp As New MenuItem(String.Format(String.Format("Cart ({0})", cart.Items.Count.ToString()), "", "", "~/ViewCart.aspx?")) 'MyMast ...

Go to the complete details ...