Click here to Skip to main content
15,886,258 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP REPEATER Pin
Eddy Vluggen30-Oct-12 3:28
professionalEddy Vluggen30-Oct-12 3:28 
AnswerRe: ASP REPEATER Pin
Guptha Ch30-Oct-12 5:49
Guptha Ch30-Oct-12 5:49 
AnswerRe: ASP REPEATER Pin
jkirkerx31-Oct-12 13:13
professionaljkirkerx31-Oct-12 13:13 
QuestionDropdownlist selected item text couldnt save into database Pin
Mathan Sivanantham30-Oct-12 0:52
Mathan Sivanantham30-Oct-12 0:52 
AnswerRe: Dropdownlist selected item text couldnt save into database Pin
Richard MacCutchan30-Oct-12 1:40
mveRichard MacCutchan30-Oct-12 1:40 
AnswerRe: Dropdownlist selected item text couldnt save into database Pin
Matt U.30-Oct-12 8:21
Matt U.30-Oct-12 8:21 
AnswerRe: Dropdownlist selected item text couldnt save into database Pin
jkirkerx31-Oct-12 13:15
professionaljkirkerx31-Oct-12 13:15 
AnswerClassic ASP - Prevent Cache from being stored Pin
diegosendra29-Oct-12 18:26
diegosendra29-Oct-12 18:26 
Hi everyone

Please find below the exact code you need in order to prevent cache from being stored. I am posting this in order to help everyone that ever needs it as I spent myself some hours this last saturday trying to do it. I saw many combinations from the same code everywhere in several forums but this is the only one that worked for me comes, as referenced below

After filling a form, then going back to the previous page and then forward back again, the form is empty as expected. Nothing is stored in the browser's cache

Hope it helps

Regards

Diego Sendra
e-mail: contact@diegosendra.com
http://www.diegosendra.com


[code]
<%
Response.buffer=true
Response.Expires = -1
Response.ExpiresAbsolute = Now() -1
Response.AddHeader "pragma", "no-store"
Response.AddHeader "cache-control","no-store, no-cache,

must-revalidate"
%>
[/code]
SuggestionRe: Classic ASP - Prevent Cache from being stored Pin
Eddy Vluggen30-Oct-12 3:32
professionalEddy Vluggen30-Oct-12 3:32 
GeneralRe: Classic ASP - Prevent Cache from being stored Pin
diegosendra30-Oct-12 4:49
diegosendra30-Oct-12 4:49 
GeneralRe: Classic ASP - Prevent Cache from being stored Pin
diegosendra30-Oct-12 7:07
diegosendra30-Oct-12 7:07 
GeneralRe: Classic ASP - Prevent Cache from being stored Pin
Eddy Vluggen30-Oct-12 10:21
professionalEddy Vluggen30-Oct-12 10:21 
QuestionTNS:address already in use Exception Pin
sjdavy29-Oct-12 9:36
sjdavy29-Oct-12 9:36 
QuestionEvent not working with ParseControl method Pin
Akshay Lakhmani28-Oct-12 21:46
Akshay Lakhmani28-Oct-12 21:46 
AnswerRe: Event not working with ParseControl method Pin
Ashish Raj Srivastava29-Oct-12 9:20
Ashish Raj Srivastava29-Oct-12 9:20 
GeneralRe: Event not working with ParseControl method Pin
Akshay Lakhmani29-Oct-12 18:08
Akshay Lakhmani29-Oct-12 18:08 
Question51degrees not redirecting! Pin
Jassim Rahma28-Oct-12 3:31
Jassim Rahma28-Oct-12 3:31 
QuestionIsMobile not determining mobile! Pin
Jassim Rahma26-Oct-12 8:42
Jassim Rahma26-Oct-12 8:42 
AnswerRe: IsMobile not determining mobile! Pin
Vasudevan Deepak Kumar26-Oct-12 8:57
Vasudevan Deepak Kumar26-Oct-12 8:57 
AnswerRe: IsMobile not determining mobile! Pin
jkirkerx26-Oct-12 12:19
professionaljkirkerx26-Oct-12 12:19 
QuestionCalculator App using Workflow Foundation in .net 4.0 Pin
Prasyee26-Oct-12 2:11
Prasyee26-Oct-12 2:11 
Questionautomatically generate sitemap Pin
Jassim Rahma26-Oct-12 1:19
Jassim Rahma26-Oct-12 1:19 
AnswerRe: automatically generate sitemap Pin
Vasudevan Deepak Kumar26-Oct-12 3:24
Vasudevan Deepak Kumar26-Oct-12 3:24 
QuestionBest SPF Practice Pin
Jassim Rahma25-Oct-12 9:51
Jassim Rahma25-Oct-12 9:51 
AnswerRe: Best SPF Practice Pin
Vasudevan Deepak Kumar26-Oct-12 3:23
Vasudevan Deepak Kumar26-Oct-12 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.