|
 |
asp_databases thread: Re: Pulling updated information from the database
Message #1 by REdwards@c... on Wed, 15 May 2002 22:23:52
|
|
Thanks for that snippet of code, I didn't know I could do that.
That was not my problem. My problem was that I continue to be the dumbest
guy on this list. I figured out what I was missing.
Thank you all for tolerating me.
Robert
Message #2 by REdwards@c... on Tue, 14 May 2002 23:49:25
|
|
I have created a web user interface for out IT Help. The users submit
requests to a DB via a form. IT can view the DB through the web interface
and update records. IT is sent to a confirm page when a record is updated
that shows the update info. I have a link that takes them back to the
specific record in the interface.
The problem is that the record is not updated in the interface. It's
updated in the DB - I checked.
My link to get back is
Response.Write "<a href=IThelpDB.asp?varID=" & Request.Form("ID") _
& ">Return to IT Help Interface</a>"
I thought this would pull the updated info. What am I missing?
Robert
Message #3 by "Ken Schaefer" <ken@a...> on Wed, 15 May 2002 11:37:25 +1000
|
|
You probably need some code to send the necessary HTTP headers to the client
to prevent the client browser from "caching" the webpage. If the browser
caches the webpage it is going to reload the previously downloaded copy from
the browser cache rather than get a new copy from the server.
<%
Sub SetHeaders( _
)
Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
' Add any other HTTP headers here
End Sub
%>
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <REdwards@c...>
Subject: [asp_databases] Pulling updated information from the database
: I have created a web user interface for out IT Help. The users submit
: requests to a DB via a form. IT can view the DB through the web interface
: and update records. IT is sent to a confirm page when a record is updated
: that shows the update info. I have a link that takes them back to the
: specific record in the interface.
:
: The problem is that the record is not updated in the interface. It's
: updated in the DB - I checked.
:
: My link to get back is
:
: Response.Write "<a href=IThelpDB.asp?varID=" & Request.Form("ID") _
: & ">Return to IT Help Interface</a>"
:
: I thought this would pull the updated info. What am I missing?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |