papa_k Posted November 24, 2003 Posted November 24, 2003 How do i stop a page from being stored locally? i thought it was response.write("no-cache") in the page_load? Quote without time nothing ever ends
Moderators Robby Posted November 24, 2003 Moderators Posted November 24, 2003 It should be set in the @ Page directive Quote Visit...Bassic Software
papa_k Posted November 24, 2003 Author Posted November 24, 2003 It should be set in the @ Page directive sorry, i dont understand what you mean with regards to the @ page directive. I understand the word set, but what is the page directive? Papa Quote without time nothing ever ends
Administrators PlausiblyDamp Posted November 24, 2003 Administrators Posted November 24, 2003 A full two minutes research since Robby's post as well. Just go to google and search on "page directive cache asp.net" and the first hit will give you a lot of information on the page directive and caching. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
papa_k Posted November 24, 2003 Author Posted November 24, 2003 the Page directive attributes set the amount of time that a page can not be refreshed within...this is not quite what i am after. i want to be able to move to a page, carry out an action on that page, like a submit of data to a sql server, move to a/the next page... ...i do not want the user to be able to move back a page after the submit (eg press the back button on the browser) and be able to resubmit the data, as this would replicate information. One way i thought i could stop this was to stop the page from be stored on the local machine, have no cache of it in IE, NS, or what ever the browser is. So, when they press the back button on the browser it will say that the page has expired. Papa. Quote without time nothing ever ends
Administrators PlausiblyDamp Posted November 24, 2003 Administrators Posted November 24, 2003 If you read down the article it mentions the outputcache directive Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
papa_k Posted November 25, 2003 Author Posted November 25, 2003 I still can not get this to work, could it be the way i contol the page? I move into the page i do not want cached by a hyper link. this hyper link has information within it. eg. http://mywebsite.com/nextpage.aspx?refID=papa007 the page then opens with the require information within. next i want the user to be able to commit the information on the page to a database. when they do this they move to another page. <Here is the problem> i do not want them to be able to press back on the browser and be able to commit the information again. As a very simple stop i dont want the page to be cached / stored on the users machine. the only way i can describe what i am after is this way...i want the user to be prompted on the screen to "refresh the page" because the information it out of date. Here is the text the IE6 displays... Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. i have looked at the link, i have read the information, and implemented it, but i can not get this to work. when i compile the page, and test it, i can press back on the browser and the page just appears. it does not say anything about the page being out of date, or requesting me to refresh. the code i have put in the page is... <%@ outputcache location="none"%> which, from what i gather, should mean that it is not cached anywhere, and therefore should not be available? Papa. Quote without time nothing ever ends
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.