LookingForInfo's solution is somewhat correct. It does achieve the desired result, but for some reason (whether I placed it at the top or bottom or both) it didn't help to refresh my page the way I needed it to. i.e. it refreshed everything except the flash file... weird.
I expanded the iframes to 100 pixels so you can see what's going on in depth.
I cleaned the code EVEN more to ensure that there is only one set of <body> tags. Then I ensured that there were either one or two sets of the <head> tags: some articles instruct you to place the <head> tag at the bottom as well as the top to enfore the no-cache rule.
I tried every possible combination I could think of. Meta tags with "expires", "Pragma", and/or "Cache-control". I tried rearranging them, using the head tags at the top only, bottom only, and both. I can tell that my pages are still being loaded from my cache because they load quickly and the flash file is still wrong.
I even read articles about how to specifically not cache the SWF file. Tried and failed there also.
I am providing the ASP code that drives the three page parts; perhaps the problem is in the ASP instead of the HTML. One wouldn't think so, but I'm getting desperate. I already tried ASP commands to assist in not cacheing. If you all think I should relist this issue in the ASP board, I will do so and close this post up.
--------------------------------------------------------
pagetop.asp
--------------------------------------------------------
Code:
<head>
<title>YIL of Kansas City :: 816.235.6789</title>
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
</head>
<body>
<SCRIPT language=javascript src="js_include1.js"></SCRIPT>
<!-- #INCLUDE VIRTUAL="/common/dbconn.asp" -->
<div align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- #INCLUDE VIRTUAL="pagetop_include.asp"-->
<%=message%>
<p><%=pagedata%></p>
</td>
</tr>
</table>
</div>
--------------------------------------------------------
pagebottom.asp
--------------------------------------------------------
Code:
<!-- #INCLUDE VIRTUAL="/common/dbconn.asp" -->
<div align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- #INCLUDE VIRTUAL="pagebot_include.asp" -->
<%=message%>
<p><%=pagedata%></p>
</td>
</tr>
</table>
</div>dbconn
</body>
--------------------------------------------------------
page.asp
--------------------------------------------------------
Code:
<!-- #INCLUDE VIRTUAL="/common/dbconn.asp" -->
<%
' Declare variables for the File System Object and the File to be accessed.
Dim objFSO, objTextFile
' Create an instance of the the File System Object and assign it to objFSO.
Set objFSO = CreateObject("Scripting.FileSystemObject")
' Open the file
Set objTextFile = objFSO.CreateTextFile(Server.MapPath("textfile.txt"))
ID = Trim(request.querystring("id"))
ID = request("ID")
if not isNumeric(id) or id = "" then
response.redirect("default.asp?not_number")
end if
if not IsNumeric(ID) then
whtConn.Close
Set whtConn = Nothing
response.redirect("/")
end if
'---------------------------------------------------------
'*****IF POSTBACK THEN UPDATE********
Set dataRS = Server.CreateObject("ADODB.RecordSet")
ID = request("ID")
whtSQL = "Select ID, pagedata, pagename, active, directlink FROM tblPages where ID = " & ID & ";"
'Response.Write whtSQL
dataRS.Open whtSQL, whtConn, 1
recordcount = dataRS.recordcount
if recordcount <> 1 then
dataRS.Close
Set dataRS = Nothing
whtConn.Close
Set whtConn = Nothing
response.redirect("default.asp?norecord")
end if
pagename = dataRS("pagename")
objTextFile.WriteLine "Name=" & pagename
ID = dataRS("ID")
pagedata = dataRS("pagedata")
directlink = dataRS("directlink")
active = dataRS("active")
'close connections,etc..
dataRS.Close
Set dataRS = Nothing
whtConn.Close
Set whtConn = Nothing
' Close the file.
objTextFile.Close
' Release reference to the text file.
Set objTextFile = Nothing
' Release reference to the File System Object.
Set objFSO = Nothing
'---------------------------------------------------------
%>
<!-- #INCLUDE VIRTUAL="/common/dbconn.asp" -->
<!-- #INCLUDE VIRTUAL="/common/databasepage.asp" -->
<%
if active = 1 then
server.Execute("pagetop.asp")
else
end if
%>
<%=announce%>
<%
if active = 1 then
server.Execute("pagebottom.asp")
else
end if
%>
--------------------------------------------------------
END
--------------------------------------------------------