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 / 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


Please Help Members By Posting Answers For Below Questions

what is publisher?

2155


What is hidden field in asp.net?

1179


What is the difference between page directive include and action tag include?

995


Give 2 examples for scenarios when routing is not applied?

1103


Why asp.net is better than php?

1022


Explain what is an abstract class?

1074


Tell me the code snippet to show how we can return 404 errors from HttpError?

1330


What is http request and response?

1072


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

1096


What is asp.net with mvc? : Asp.Net MVC

1029


Explain how does asp page work?

1068


How would you get asp.net running in apache web servers? Explain it's limitations.

1041


Is asp.net still used?

1074


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

1094


What are the differences between the response.write() and response.output.write()?

1068