Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have minicart on master page.

i set default page is home.aspx

Once user run the application, home.aspx is showing along with master stuff as everyone knows.. RIGHT NOW mini cart is 0 WHICH IS on MASTER PAGE.

if user give add an item, minicart gets 1. they add one more different item again, So, now the minicart is 2. .. now user click on minicart button. now the web page is redirected into cart.aspx where user edit and delete.

now, they delete one item.. once they delete a item, i deleted in database too. now if you click home button, it is redirecting (i mean reloading), so i am making minicart to show 1.

But when user click back button of browser, the minicart was showing 2 though user deleted one item.. (page not reloading because of Browser caching)

So, to reload the page when user click back button, we will give

C#
Response.Cache.SetNoStore();

But this will throw warning message which is annoying for the user.. or they may feel virus on website..


how can i handle this problem?

help needed.
Posted
Updated 31-Oct-15 22:17pm
v2
Comments
Krunal Rohit 30-Oct-15 0:49am    
Show us your code.
It's bit difficult anything to say without saying your code.

-KR
F-ES Sitecore 30-Oct-15 4:40am    
Why is this a problem and who is it a problem for? People expect\are used to seeing old pages when they go "back", and to refresh the page if the data seems out of date.

If you want to disable caching on specific pages then google for "asp.net disable caching on page" and you'll find lots of examples of how to do this.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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