Is it possible to prevent a browser from caching an ASPX
page?
Answer Posted / swapna
Just call SetNoStore on the HttpCachePolicy object exposed
through the Response object's Cache property, as
demonstrated here:
<%@ Page Language="C#" %>
<%
Response.Cache.SetNoStore ();
Response.Write (DateTime.Now.ToLongTimeString
());
%>
SetNoStore works by returning a Cache-Control: private, no-
store header in the HTTP response. In this example, it
prevents caching of a Web page that shows the current time.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain serialization and deserialization?
What is the difference between session and application?
How Session outproc in Sqlserver stored?
What is server components?
How do active server pages work?
Explain exception filters?
Where session variables are stored?
What does asp in asp.net stand for?
What is the use of data set in asp.net?
In Code-Behind class which kind of code (server or client) is found ?
Define cookie.
What are the asp.net server side objects?
What are the asp.net list controls and difference between them?
which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites
Do cookies store passwords?