ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Is it possible to prevent a browser from caching an ASPX 
page?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Is it possible to prevent a browser from caching an ASPX page?
Answer
# 1
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 ?    0 Yes 1 No
Swapna
 
  Re: Is it possible to prevent a browser from caching an ASPX page?
Answer
# 2
Write this code in the Page load event of the code behind :-

Response.Cache.SetCacheability(HttpCacheability.NoCache);
 
Is This Answer Correct ?    1 Yes 1 No
Manoj
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
If we add a textbox and give the required field validator,and i add two radio buttons 1 is yes another one is No.And i add another one server control button ,if i click the button ,if the radio button Yes is checked the validation control is fired ,if no the validation control is not fired.So what you used to solve this problem. CTS6
How do you define authentication in Web.Config? Accenture2
Is string a value type or a reference type?  9
Caching techniques in .NET ? Microsoft1
Why do we use Option Explicit? Microsoft2
what is profiles in asp.net  1
Difference between HTML control and Web Server Control?  3
About DataAdapters ? Accenture7
What is the best way to search any exact information on google? Intellevate2
can sn.exe can be used before gacutil.exe Accenture2
What is dataset ? Infosys10
Types of caching ? TCS3
What is WebService ? Tanla-Solutions6
Features in ASP.NET ? Microsoft1
hi im shailendra singh my question is how we deploye the data base HCL2
You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel Syntax-Softtech2
How to convert a string into an Integer in ASP.net?  6
what to magage the state manament in asp.net with respect to in_prock and out_prock Aviva1
What is viewstate? Microsoft3
What is the name of the process the browser uses to find the address of a web server? a) DMZ b) DNS c) Active Directory d) Database lookup Syntax-Softtech1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com