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
What is gridview in asp.net?
Describe how to implement globalization and localization in the use interface in .net.
What is _dopostback in asp net?
What is difference between Fragment Caching and Page Caching in ASP.NET?
How to unit test Web API?
How to reduce the width of textbox in editcommandcolumn of datagrid?
What are html helpers in asp.net?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
Can you change a master page dynamically at runtime? How?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
Which authentication uses a combination of windows and iis authentication?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What does the hotspot class in .net do?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?