Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is it possible to prevent a browser from caching an ASPX
page?

Answer Posted / surendra singh

Just call SetNoStore on the HttpCachePolicy object exposed through the Response object's Cache property, as demonstrated here:

<%@ Page Language="C#" %>
<html>
<body>
<%
Response.Cache.SetNoStore ();
Response.Write (DateTime.Now.ToLongTimeString ());
%>
</body>
</html>
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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is active web page?

997


Do session use cookies in asp net?

1044


What is ispostback method in asp.net? Why do we use that?

1319


What is parse in asp.net?

1140


What is the life cycle of an asp.net page?

966


What are early binding and late binding.

1131


8. Why do you want to work here?

1972


Explain how cookies work. Give an example of cookie abuse.

1173


What is a master page and what does it do?

983


What are strong names?

1086


Explain client side state management system.

1054


How do I publish my asp.net application to my isp's web server?

1125


What is an asp.net validator? And, mention its types.

1074


Explain how can we inherit a static member?

1031


What are the various types of validation controls provided by asp.net?

1020