This topic is locked

Refresh list page after record updated

1/18/2010 6:15:45 AM
ASPRunnerPro General questions
D
danivale author

Hi everybody,

I want to refresh a list page after the update of a record.

I added this code as event "After record updated"
StringURL = Request.ServerVariables("HTTP_REFERER")

Response.Write "<script>alert('"&StringURL&"')</script>"

Response.Write "<script>window.location = "&StringURL&";</script>"
But nothing happens after the update, the alert show the correct url but there is no refresh.

Any idea to do it?
Thanks

C
clig 1/18/2010



Hi everybody,

I want to refresh a list page after the update of a record.

I added this code as event "After record updated"
StringURL = Request.ServerVariables("HTTP_REFERER")

Response.Write "<script>alert('"&StringURL&"')</script>"

Response.Write "<script>window.location = "&StringURL&";</script>"
But nothing happens after the update, the alert show the correct url but there is no refresh.

Any idea to do it?
Thanks


I put this in my lheader.htm source:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">

D
danivale author 1/19/2010

Nothing happens with these two lines in lheader.htm



I put this in my lheader.htm source:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">

J
Jane 1/20/2010

Hi,
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

C
clig 2/1/2010



Nothing happens with these two lines in lheader.htm


next is to set expire immediately / uncheck cache ISAPI at server in IIS Admin and/or try something like this at the top of your asp pages or included asp
<%

pStr = "private, no-cache, must-revalidate"

Response.ExpiresAbsolute = #2000-01-01#

Response.AddHeader "pragma", "no-cache"

Response.AddHeader "cache-control", pStr

%>