Returning Cache Data
I have an employee phone book application that is 5 years old. Written in asp with vb script calling sp's. when someone queries the all employee page they get all employees. When they then query employees by location it will again return the all employees data.
I changed the RS names in the all employee page in hopes that would fix it. I added the no cache code on all my pages and this hasn't helped. This app is 5 years old and hasn't changed at all but this just started happening within the past 6 months. When the user clears all cache and tries again it will work. How do I fix this?
View Replies
ADVERTISEMENT
I have a asp page "shownews.asp" which caches the data..now when i view the website how do i verify that the data is being fetched from the cache only and not from the database.
View Replies
View Related
I have a problem to keep the input value from user still keep. The condition when User input , let me say" Employee Code","Employee Name","Level", then the user input all the 3 field, but when the user submit the employee code not unique/already had by another record,then the problem is after that Employee Name and level input value empty again. Then How to keep the input value....with that condition.....i have no idea....
View Replies
View Related
I have a table that has ticket number displays as a link.When I click on a ticket number it displays no data was return. (" it's not reading the ticket number I choose")Can someone look over my codes and tell me what should be doing! I am a the final part and I lost.
View Replies
View Related
I have written some ASP code that selects some records from a SQL database according to a criteria, if no information is found in the database then it sees there is an End Of File in the object record set and prints the line below:
<%if objRecordset.EOF then Response.Write("No information was found for the record you have entered") %>
My problem is that if no records are found it still tries to print the information that it is looking for and cannot find and thus throws an exception. The code for that is below:
<Table Border="1" BGCOLOR="white">
<% Response.Write "<TR><TD>The date for that record is " & objRecordset("DateTime") & "<br></TD></TR>" %>
View Replies
View Related
I have some asp that should be inserting a shopper into my SQL Server DB. Code:
View Replies
View Related
I have a database which stores information,I have a page which has links to each of the rows in the database and to search by each row it has its own unique ID. The problem I am having is only one row keeps getting returned from the database.I have an access database and using ASP. I think the problem could be with the SQL statement.
SQL = "Select * FROM monitoring where monitoringID = & request('ID') &"
View Replies
View Related
im trying to display a name from a table, by matching up where an assigned_to id = emp_id in another table. Code:
View Replies
View Related
What is a faster/better coding practice?
Method 1:
Code:
Sub myFunction(byRef x)
x = x + 1 ' do something with x
End Sub
x = 7
myFunction(x)
response.write x ' shows 8
Method 2:
Code:
Function myFunction(x)
myFunction = x + 1 ' do something with x
End Function
x = 7
response.write myFunction(x) ' shows 8
Also discuss considerations when there are more than one variables that need to be changed.
View Replies
View Related
I'm building a page that displays all phone in phoneview.asp...however from admin section we can add new phone image tht stores path in database.
I wanna use cache object in phoneview.asp..becoz most of the time images r same..
so i just need to store image in cache...but not data..becoz asp page reads all phone list information from database and displays all phones.
so is it possible to store image in cache so it can be served quickly if its in list
View Replies
View Related
Could someone tell me the way(s) of doing cache in old ASP pages?
What i really wanted was to keep in cache for some time the HTML generated by an ASP page (something like the "@OutputCache" directive of .NET).
View Replies
View Related
I have an ASP page with the "no cache" command.I know the ASP file is not being cached. But the flash file that is embedded in the ASP page is repeatedly cached by my browser.
Anyone discover a sure-fire method to prevent caching of embedded files?
View Replies
View Related
In my asp code i generate a graph/plot which is saved as a .png file, so saved as an image to the server. The problem is when i revisit the page with different selections, a new image is generated but not shown in the HTML. The previous image is shown which is not desired. So i did some coding to not cache the image, but without succes. Here is some code i tried:
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","no-cache,must-revalidate"
Response.CacheControl = "no-cache"
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
</head>
</html>
and i used "nosave" in the img tag
<td><img src="linegraph.png" width="<%=xsizewindow%>" height="400" usemap="#map1" border="0" nosave></td>
but all these options without succes......
View Replies
View Related
i need to change a variable in my application object in every 5 minutes. Application("test"). how can i do that? can you show me an example code.
View Replies
View Related
I have a frameset with 2 different pages. When a user logs in the page is setup based on that particular user. The problem I have comes when that user logs off (killing his/her session) and someone else logs in one of the fr4ames does not always refresh with the new users info.
The user actually has to right click on it and click on refresh. I am killing session with �Session.Abandon� (this seems to be working). I have the following statements at the top of the page that is not refreshing: Code:
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
Anyone have any idea why the frame is not updating?
View Replies
View Related
My website is on a server that places Cache-Control: private in the
Header of the pages that are served. I see these pages are not cached
by Google (the Google Toolbar Cached Snapshop of Page function).
Is this directive from my server preventing Google from caching the
pages that have it or do I need to look into some other problem?
Thanks in advance for your input/feedback.
View Replies
View Related
Is there a way to clear cache using ASP, VBScript or Javascript?
I have created an ASP login page with sessions etc so unregistered members cannot view certain pages, however, when you logout you can still press the back button on the browser toolbar and view the pages, I want to find a way to make those pages expire by clearing the cache or something like that!
View Replies
View Related
Does anyone know how to clear a sites cache with ASP. I have a login script that does not terminate the history when signing out. A user can simply click the back button and get back into the site..
View Replies
View Related
how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).
Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.
View Replies
View Related
what is the diference between these two cache control header.no-cache and no-store.I have read the w3.org explanation.So lets say I am using only no-cache ....my understanding is thatnothing is cached and nothing is writen to disk.but what happens when we use no-store....i think..nothing is written to disk but it could be cached.
Now my question where is this cache located...is it only in memory ?....if it is written to disk how log is it there and when does it gets cleaned.Is no-cache more secure than no-store ..why?
View Replies
View Related
how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).
Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.
View Replies
View Related
I wrote the following code to clear the cache in my asp page.
Code:
Response.Expires=-1
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Cache is getting cleared but a new page is coming when i hit the browser's back button. I need to get the page expired warning message of internet explorer. I did some r&d and found that HTTP_CACHE_CONTROL: no-cache header is not getting added to the page. How to add this header to my web page.
View Replies
View Related
Is there any way I can clean the cache at the top of each web page so that users cant use the back button in explorer ?
View Replies
View Related
I have an ASP which performs a simple query pulling data from an Access db. The data will only change about once a month so I reckon it'd be more efficient to cache the recordset in some way. I'm guessing I store it in an application variable but I don't know where to start.
View Replies
View Related
Just pass date as a querystring , even if you do not want it
like www.domain.com?x=date
No browser will ever cache this page because the url will change every second LOL. This comes particularly handy when you are making remote calls using xmlhttp or other means and you require the results to be current.
View Replies
View Related
how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations.
I ve been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.
http://www.pool-predictions.co.uk/ho...rs.asp?tab=a_d
View Replies
View Related
1: Is it possible to cache the images on my pages.....eg...credit card images, header images, logo etc etc, so that thge user doesn't have to keep loading them from scratch on every page?
2: How would i go about doing that?
I only want the images to be cached...not the content, as it involves sessions which store login info.
View Replies
View Related
how can control cache pages, when i logoff my session and back to members page again the page is still so how can i get rid of this .
View Replies
View Related
Someone know how can i delete cache of browser in asp code? is posible?
View Replies
View Related
When I upload an image with same filename as image already up there it shows me the old image not the new. Refresh button in IE give me correct image but that is not good enougth.
I also no you can in IIS add header to expire the images immediately but I do not wish to this all the time. I wish to be able to put in the ASP page to always reload the image. Any clues. Response.Expires = 0 does not work as only the page not the image!"·"%!!·!
View Replies
View Related
what would be the script in deleting cache automatically in browser in asp? if there's no cache would that affect the transactional functionalities like add, update... and so on? am i going to put such script on every page?
View Replies
View Related
Does anyone know how I can have more control over which images are cached on a particular page?
I have Response.Expires = -1000 set at the top of the page to ensure that the page isn't cached because it is important that the data from the Database is not cached (this has been a problem in the past).
Is it possible to specify which images, ie the ones that are common to all pages, will be cached and which ones won't so as to force the user to cache them and therefore make he site slightly quicker?
Obviously I understand that if the user has their own caching rules setup, these will take precedence.
View Replies
View Related
I have to continuously download the same web page on our IIS server. It is
important to always download a fresh page from the server including not only
the .asp page itself but all the .gif and .jpg files associated with that
page. We need to measure statistical info on how long it takes to download.
If the page is stored in the client machines internet cache that would be a
problem.
Now I know how to add the following to the main .asp page to insure a fresh
copy is always downloaded of this page itself.
<% Response.Expires = -2000 %>
When I look at the client machines cache folder it does show that the main
..asp page has expired an hour ago. However all the .gifs and .jpgs , etc downloaded with the main .aps page show the value Expire: None which I conclude means that these pieces are not redownload each time we get the main .asp page.
Up till now we have been using a perl script to try and erase the cache
before each download. This works sometimes but not all the time.
Is there any way to force the .gifs, .jpgs etc. to have to download fresh
each time just like I was able to get the main .asp page to redownload with
<% Response.Expires = -2000 %>
View Replies
View Related