Hy,
I have the problem that SetCacheability is not working unless I do a postback.
I have one simple web form (called WF1), with one button (called B1). In the button's B1 click I put a redirection to another page (called WF2).
In both forms Load events I put the code:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
I press the button B1 in WF1 and I go to WF2.
The problem is that when I push "Back", the page WF1 sinply appears and it doesn't require a F5.
But, if I put on WF1 another button, called B2, that only does a Postback, then if I press the button B2 and then I press the button B1, it redirects me on WF2 and then when I hit "Back" it requires F5 to refresh, so SetCacheability works .
Actually I only need to have one button, B1, on the form WF1. So what should I write in B1's click to have the same result (without ...
Go to the complete details ...