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
What is difference between inproc and outproc?
Is it possible to create web application with both webforms and mvc?
What’s the catch?
what is a .xap file? Explain with an example.
If you are using two select queries and retrieving data. how do you access second query's result set using data reader?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
How can you debug your.net application?
What permissions do asp.net applications posses by default?
I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.
Is asp.net mvc front end or backend? : Asp.Net MVC
What are the advantages of asp.net mvc framework? : asp.net mvc
What is page request in asp.net?
What are Session states available and its Uses?
Explain different types of Caching techniques in ASP.NET?
Explain the different types of directives in .net?