ASPNet 2.0 Cache question

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In the ASPNet 2.0 web application, the Form1.aspx is set to
HttpCacheability.NoCache,
and the Form2.aspx is also set to HttpCacheability.NoCache.
The Form1 will do the
Response.Redirect("Form2.aspx?CustomerNo=" + strCustomerNo.ToString() );
My question is since both Form1 and Form2 are set to NoCache,
why the Form2 will still receive the "CustomerNo" whenever I hit the Next
from the IE6 menubar?
Isn't it supposed to be nothing?
Thanks for help.


Jason
 
The back and Foward Button in the IE picks teh page from the browser Histroy.
SO If you want to clear the page when you move to and fro using the Back and
Forward button then you need to clear the Browser History.

Regards,
Manish
 
The back and forward button in the browser brings the page from the browser
History. So If you want to clear the page when moving to and fro from back
and forward button then you would need to clear the History of the browser.

Regards,
Manish
 
not caching means the browser must request the page again if request fom
history. it does not change the url, so of course form2 sees it.


-- bruce (sqlwork.com)
 
Back
Top