Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I placed a preview of the shopping cart inside the header on the Master Page. When i send a product to the cart, i wish to preview automatically the number of items and total without going to the shopping cart.
Problem is each time a sent a product to the cart, i still need a second click on any random link before this preview is updated. Which mean i need some kind of page refresh that can update Shopping bag preview. Any idea how i can update direct from the button click that send the product to the cart?
Posted
Comments
JoCodes 28-Feb-14 7:33am    
Can you add the code you tried for updating the Count to the Cart to the question.

By using a JavaScript you can activate your "preview" area from your master page.
 
Share this answer
 
Of course you can without refreshing the entire page or anything. This can simply be achieved by using AJAX.

Simply put your cart icon/text on <asp:UpdatePanel>
Some explnanation & examples are given over
here[^]
here[^]
here[^]
here[^]

-KR
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900