Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How do i stop a page from being stored locally?

 

i thought it was

 


response.write("no-cache")

 

in the page_load?

without time nothing ever ends
Posted
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

without time nothing ever ends
Posted

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.

without time nothing ever ends
Posted

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.

without time nothing ever ends

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...