Caching graphics!!!

Results 1 to 2 of 2

Thread: Caching graphics!!!

  1. #1
    Rick Herterich Guest

    Default Caching graphics!!!

    I have an ASP page that displays graphics and also retrieves data from a database, I would like to be able to get the live content from the database each time the page is loaded but to have the graphics cached. Right now I am using &#060;% Response.Expires = 0&#037;&#062; which seems to cause the whole page to re-load. Any ideas would be appreciated.<BR>- Rick

  2. #2
    asdf098 Guest

    Default RE: Caching graphics!!!

    One possible solution...your mileage may vary. Note the use of frames in WebPage One and the placement of the Response object Expires property setting in WebPages Two and Three.<BR><BR><BR>WebPage One: historical_Framed.asp<BR>WebPage Two: historical_Image.asp<BR>WebPage Three: historical_Data.asp<BR><BR><BR>************ WebPage One Contents ************<BR><BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;&#0 60;/HEAD&#062;<BR>&#060;frameset rows="*,*"&#062;<BR>* &#060;frame src="historical_Image.asp" scrolling="yes"&#062;<BR>* &#060;frame src="historical_Data.asp" scrolling="yes"&#062;<BR>&#060;/frameset&#062;<BR>&#060;/HTML&#062;<BR><BR>************ WebPage Two Contents ************ <BR><BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;% Response.Expires=1200 %&#062; <BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;&#060;/HEAD&#062;<BR>&#060;BODY background="images/AZ_Counties.bmp"&#062;<BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR><BR><BR>************ WebPage Three Contents ************ <BR><BR>&#060;!-- #INCLUDE FILE="../../includes/HEADER.INC" --&#062;<BR>&#060;% Response.Expires=0 %&#062;<BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;<BR >&#060;SCRIPT LANGUAGE="javascript"&#062;<BR>&#060;!--<BR>function retBut_onclick() {<BR>// Note it is window.open not window.navigate:<BR>window.open("http://123.123.123.123:80/dB/GeoNam/GeoNamTOC.htm")<BR>window.parent.close();<BR>}<BR>//--&#062;<BR>&#060;/SCRIPT&#062;<BR>&#060;/HEAD&#062;<BR>&#060;BODY&#062;<BR>&#060;BUTTON name="retBut" size="25" onclick="retBut_onclick()"&#062;<BR>Back&#060;IMG src="../../images/arrow176.gif" alt="Return Button"&#062;&#060;/BUTTON&#062;<BR>&#060;%<BR>Response.Write "&#060;p&#062;Patience is its own reward....Page Powered by Access97&#060;/p&#062;"<BR>Response.Write("&lt;BR&gt;")<BR>On Error Resume Next<BR>Dim SN, oRS, RecCount, strSQL, oField, intCount, rowCount<BR>SN = "RexMS"<BR>strSQL = "SELECT * FROM AzHistorical"<BR>Response.Write("SELECT AZ.FeatureName FROM AZ WHERE (((AZ.FeatureName) Like &#039*istoric*&#039))")<BR>Response.Write("&lt;BR& gt;&lt;BR&gt;")<BR>Set oRS = Server.CreateObject("ADODB.RecordSet") <BR>oRS.Open strSQL, "DSN=wbGnAcc97"<BR>&#039oRS.Open <BR>oRS.MoveFirst()<BR>Response.Write("&#060;b&#06 2;&#060;u&#062;Row#&#060;/u&#062;, &#060;u&#062;Placename&#060;/u&#062;, &#060;u&#062;FeatureType&#060;/u&#062;, &#060;u&#062;County&#060;/u&#062;, &#060;u&#062;FIPS&#060;/u&#062;, &#060;u&#062;GeoCoord&#060;/u&#062;, &#060;u&#062;SourceCoord&#060;/u&#062;, &#060;u&#062;Elev.&#060;/U&#062;, &#060;u&#062;TopoMap&#060;/u&#062;&#060;/b&#062;")<BR>Do While Not oRS.EOF <BR>&nbsp; For intCount = 0 to (oRS.Fields.Count -1) Step 1<BR>&nbsp; Response.Write(oRS.Fields(intCount).Value & ", ") <BR>&nbsp; Next <BR>&nbsp; Response.Write "&lt;BR&gt;"<BR>&nbsp; oRS.MoveNext<BR>&nbsp; rowCount = rowCount + 1<BR>Loop <BR>strSQL = ""<BR>oRS.Close <BR>Set oRS = Nothing<BR>If rowCount &#060; 1 Then rowCount=0<BR>Response.Write("&#060;b&#062;&#060;f ont color=red&#062;ROWS RETURNED = " & rowCount & "&#060;/font&#062;&#060;/b&#062;")<BR>%&#062;<BR>&lt;BR&gt<BR>&#060;BUTTO N name="retBut" size="25" LANGUAGE=vbscript onclick="return retBut_onclick()"&#062;<BR>Back<BR>&#060;IMG src="../../images/arrow176.gif" alt="Return Button"&#062;<BR>&#060;/BUTTON&#062;<BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •