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

Answer Posted / manoj

Write this code in the Page load event of the code behind :-

Response.Cache.SetCacheability(HttpCacheability.NoCache);

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Forms Authentication in ASP.NET?

575


What is the significance of ASP.NET routing?

632


What are the different kinds of assemblies?

520


Explain the different types of directives in .net?

517


What are the various ways to send content from one page to another?

520






What is event in asp.net?

531


Define repository pattern in mvc.net? : asp.net mvc

511


What is asp net application object?

535


What are Authentication and Authorization?

602


What are assemblies and namespaces and explain the difference between them ?

560


In which event are the controls fully loaded?

566


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

582


Explain the difference between Repeater and Data list control in ASP.NET?

612


What can we do with asp.net?

510


What is asp.net used for?

595