xiaawan — 2007-12-07T07:39:39-05:00 — #1
Hi All can anyone help me with this problem. Is it possible to use the form method as "Post" and avoiding the message "Webpage has expired". Actually after a search a list of records appear. And user clicks on any link in the list and the website takes him to the next page when he clicks browser back button , the page is loaded with this message "Webpage has expired". I know this can be avoided with Get method. But is it possible with Post method. Thanks in Advance.
srirangan — 2007-12-07T08:14:59-05:00 — #2
Remove the <meta> cache line that'd be present in between the <head></head> tags..
xiaawan — 2007-12-07T08:24:07-05:00 — #3
Dear Srirangan thank you for your quick reply but there is only one meta tag between my <head> tag that does not contain any information regarding cache. So removing it will not solve my problem. It contains charset info. Any other idea. Anyhow thank you for your reply.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>My Site Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
dbevfat — 2007-12-07T09:46:19-05:00 — #4
xlaawan: maybe this article can help you.
xiaawan — 2007-12-08T04:06:55-05:00 — #5
Dear dbevfat I saw this article some times ago but at that time I could not get too much out of it. But this time I got an idea from this article. So I used a mid-page between two pages and redirected the page to the end one and it solved my problem. Thank you very much for this help. Sometimes we ignored many things but actually they can work for us if we try to understand them. I will also make a comment over there in the article. Thanks again. See u in any other post. God Bless You. Have a nice Time.
dbevfat — 2007-12-08T05:51:54-05:00 — #6
I'm glad I could help.
2ndmouse — 2008-05-31T05:16:25-04:00 — #7
Sorry to resurrect this one and I hope I'm not being too simplistic here, but I got round this problem by providing the user with their very own 'Back' button, which POSTs all the required data back to the form page.
Works a treat.
allspiritseve — 2008-05-31T10:27:15-04:00 — #8
The best thing to do, would probably be to redirect after POST:
That way the user is provided with a GET page, and if they hit back, they go back to the original GET without resubmitting or expiration.
Also- POST should generally be used when you're writing to the database, or making some other change-- you should normally use GET when retrieving a list of records.
rsheladiya — 2010-04-28T21:20:09-04:00 — #9
hi, In my case we are working with classic asp application.
In my page we use post method and back button.
we also used back button to maintain History b/w postback to same page.
I get Page Expired and need to refresh page.
Please help me to solve this problem.!