Stopping IE Using A Cached ASP Page

This problem is regarding ASP/AJAX. I don't really want to bore you with all the code so i will start off by giving an overview of the problem.

I have an ASP page that places an AJAX request to an ASP page that retrieves a random record from the database, the information returned is then updated into a Div on the original page. The original page has a Refresh link to repeat the procedure and select another random database entry. With me so far?

In firefox this works perfectly, but im having problems in IE. It seems that the ASP page that accesses the database is cached somehow as everytime i use the refresh link it returns the same data. I have used the time() function in the returned data so I can see that it is exactly the same info returned with each refresh.

It seems that the response is being cached and rather than rerunning the script the cache is being returned.

View Replies


ADVERTISEMENT

Stopping Pages/images From Being Cached

Is there an effective way to stop pages from being cached?

I've created several websites that have dynamic content and images that are managed by a client. The images are named according to the "id" generated via an Identity column of their corresponding database record (ex: 1058.jpg). The problem occurs when the client tries to change the image.

The client gets understandly confused because the old image is still displayed, due to the browser caching the image. How can I force the browser to stop caching the page/image?

All of the ASP pages already have the following:

<%Response.Expires = -1%>
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">

Any ideas?

View Replies View Related

Disallowing A Page To Be Cached

Is there a way to disallow a page from being cached? I'm about to
introduce functionality that will not work properly if the person uses
the 'BACK' button on their browser and would like to ensure that they
cannot. I tried using <% response.expires = -1 %> thinking that it would
work, however it only ensures that another request has to be sent to the
server. Any ideas other than simply giving the user a message NOT to
use the back button?

Here's a link to the functionality. It uses session variables to produce
a dynamic rate quote. (Tip use WDW in the Description/Keyword search).

View Replies View Related

Retrieving Cached Asp Page

I want to be able to return to a search results page without having to reload the page after having followed a link from one of the results. Would a search results pages generated by asp be cached, and is it possible to direct the browser to load quickly from the cach rather than slowly from the server.

View Replies View Related

XMLHTTP And Cached Page

I have a page requesting content from another via XMLHTTP object. The returned page is returning cached data and I can't get it to stop.

I'm running IIS on a Win2k Server. I've done nothing to setup page caching, etc.

View Replies View Related

Remove Cached Page In Browser

I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp. If it goes back from hello.asp to login.asp, then in Internet Explorer, clicking on Back, the cache of the page hello.asp has been removed, which is the effect that I want.

If it goes back from another.asp to login.asp, and then in Internet Explorer, clicking on Back, the page another.asp still remains. Code:

View Replies View Related

Remove Cached Page In Browser

I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp.

If it goes back from hello.asp to login.asp, then in Internet Explorer, clicking on Back, the cache of the page hello.asp has been removed, which is the effect that I want. If it goes back from another.asp to login.asp, and then in Internet Explorer, clicking on Back, the page another.asp still remains. Code:

View Replies View Related

Request Stopping

I have 3 pages. on page 1 there is a select box, name="UD", containing "Data B"

page1 submits to page 2
on page 2, <% USD=request("UD")%> results in USD = "Data B"
USD displays in a text box as "Data" (the space and B missing)

page 2 submits to page 3
on page 3, <% USD=request("USD")%> results in USR = "Data" (the space and B
missing)

How do I keep the data complete?

View Replies View Related

Stopping Server Side Script

I have a few reports that grabs +- 27 000 records from a database, does a few calculations and queries on them, and then writes the results to a text file. As you can imagine, this does take a while (half an hour if the server isn't busy) and hammers the servers resources.

I sometimes realise (after I've started the page) that I made an error in my code, or that another report is more important at the moment. The only way to stop the page if something like this happens, is to bounce the server (even closing my browser doesn't work) - which won't make me very popular .

Is it possible (at all) to stop the execution of the page after it has been started? (I know that ASP is executed on the server, and only the results are sent through, but doesn't it have some sort of event handling?

View Replies View Related

Stopping Running Code At A Certain Point

I have a asp page which is pretty long. This consitst of various recordsets. My intention is to stop execution of a code at a cetain point and test one value prior to this point. Is there any way to do this?

View Replies View Related

Stopping A Long Server Process

I have this asp screen (not .net just asp) where user can fill in report criteria and then when they hit the "Go" button, at which point the report page will be displayed. Sometimes the reports are quite big and may take 2 to 3 minutes to complete.

If the user realizes he makes a mistake as soon as he gets to the report page, he may hit the "Stop" button and think the server has stopped generating the report, but it's not true. The server is still running the process.

This is particularly more obvious for developers like myself cos I have the server installed on my workstation. When I hit the Stop button and then back to the report filter page and make some changes and then hit the Go again, it'll take 2 to 3 minutes before it'll show the report page this time, as if the server was trying to complete my last report first, before processing my current new request.

Question I have therefore, is, if I'm running a long server process, then how I can get the server to stop this thread (or process?) when the user hits the Stop button, or hits the Back button?

View Replies View Related

Stopping Secure Pages Appearing In History

I know this probably sounds like a newbie question, but I was under the impression that secure pages (https) don't appear in the history/address bar history list - this appears to be incorrect?

Should I really be putting some form of expiry command at the head of each of these pages if I don't want casual users to see them? I use Classic ASP so is it better to use a command via this lang or the old META methods?

View Replies View Related

Stopping People Putting Scripts Into Form Fields

im making a simple site where people can add comments into a shoutbox. only ive had experience of people adding in html tags and javascript to redirect people away from my site and display images etc which im not interested in.

how do i stop this from happening? is there a way to intercept the form contents and kick out the code leaving plain text? or changing the code so it displays the real code using &lt; and &gt; ?

View Replies View Related

PDF Cached

I am using ABCPDF4 component(ASP),to add values to an editable pdf, and then redirect user to the pdffile .. but for every user the same values are being shown on pdf .....

View Replies View Related

Proxy Cached

We encountered a very strange problem. We host a web site:
www.[our_site].com and a large number of our users belong to an
organization group with central network control and they can only
access our web site through two headquarter proxy servers: x.x.a.7 and
x.x.b.8, which was set in security dept of the group headquarter. The
web site was working fine till recently when those user accessing via
x.x.a.7 all have problem suddently while those accessing via x.x.b.8
have no problem. The users accessing via x.x.a.7 are directed to wrong
page, very slow response, hang on some page or encounter errors, etc.
If they access the same site via another alias, like
www2.[our_site].com which points to the same web server, they will not
have any problem. They do not have problem to access any other web
sites we tried, including our other web sites hosting in the same site,
even the same server. If the users change their ie setting to use other
public proxy server, they will have no problem to access our site.
Strict security policy are applied to the user site, so we cannot ping,
tracert or do any other network testing from user machine. Since user
has no problem to access any other web site, the headquarter security
department wont handle our case and simply think it is our problem.

View Replies View Related

Cached Pages

I have recently changed web hosts, and am suddenly having the problem that IE is displaying cached ASP pages, i.e. displaying data base query results from the first assembly of the asp page. Surely this contravenes the whole principleof ASP as a dynamically generated page. I didnt get the problem with my previous host.

What am I to do about this? If it is browser dependent, how can I be sure that all users have their browsers set correctly. If it is a host problem, it would be good to have some idea what the problem is before contacting them. Or is there something I can do within my asp page to ensure that the current page is the one displayed by the browser?

View Replies View Related

Image Files Not Cached

I am running an ASP file that returns image buttons back to the client. The download on the client side is slow (about 19 small images on the page). I am running on Windows XP SP1 behind ISA server, and the request is coming from an outside IP.

The same application on an NT 4.0 Server works fine. The download time is maybe 3 seconds, versus about 20 seconds for the same exact images. It is behind the same ISA Server.

View Replies View Related

Clearing Cached Pages In ASP

I searched the forum and got the following code from someone who posted it in 2002. However I can't seem to get it to work in my asp page. Can someone confirm the syntax for me? I would like to try and put it in an include file rather, but need to get it to work first.

Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "no-store, must-revalidate, private"
Response.AddHeader "Pragma", "no-cache"
Response.Buffer = True
Regards
Ronel

View Replies View Related

Old Pages / Cached Pages

I am always getting cached pages even contents of the page changed on the server but I am getting old page (data).How to solve this.

View Replies View Related

ASP Read The Execl Cell's Data, Web Page Created From Excel2000 -- Save As Web Page

I created a web page from Excel2000, using "Save as web page..."...Publish
function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.

How can get the data on the excel file using ASP from server side?
For example, the value of Cell(1,2), Cell(2,3)....

View Replies View Related

Display Aspx Page Or Reporting Services Page In User Control

What I want to be able to do is create a user control that will display an
entire page page within it. Does anyone know how to do this or better yet
have any same code?

View Replies View Related

How To Transfer A Data Display On 1st Page To 2nd Page Upon Clicking On The Link

I like to know how to write this specifc function on ASP where the user eg: display a set of records on the webpage. Example the data are ID, Name and address.

Lets say i display the data on the webpage and i set the Name as the <a href>. So when i click on the name, it will move to another page with the id of the specific name. Code:

View Replies View Related

An ActiveX Control On This Page Might Be Unsafe To Interact With Other Parts Of The Page ...

I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in my machine), I have no problem, except the page prompted me with "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"

But, when I run the ASP page on another machine (even though the other machine is also a development machine that already has the ActiveX control and I set the Security for Intranet to "Low"), it did not prompt me the above message, and I got an error when accesing any method of the AX control (e.g Object doesn't support this property or method 'myAXControl.method').

Is this because I have to create a CAB file and mark the AX control as safe for scripting ?To create a CAB file for this AX control, do I need to create my own VB AX
Control project that contains this control and then create a cab file for this VB project ?

View Replies View Related

On Session_OnStart() Getting Fired When Going From Page To Page At The Same Level As The Global.asa

This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accountid") =
"123456" within an asp page and then response.redirect to the next page and
immediately response.write session("accountid") and I get back nothing.

But if I set a session variable session("accountid") = "123456" within an
asp page and response.redirect to a page in a sub directory and immediately
response.write session("accountid") I get back 123456 on the screen.

View Replies View Related

Including Inverted Commas To Specify Page Elements While Page Is In ASP

I am having a problem with a site that I am developing - my aim is for it to validate as XHTML Strict however, I am running into a couple of problems validating it; in my Response.Write ASP script, I am not including " 's to define page element tags as they keep throwing up errors in the page. Code:

View Replies View Related

Blank Page Running ASP Page On Windows Vista

I've a strange problem with Windows Vista, running an ASP page on local
machine (http://localhost/test.asp), the page does not give me any error but
the asp code is not executed (simple code : <% response.write("hello") %),
it show me a blank page, I think I've put all the setttings correctly, but
maybe I must do something obvious to fix that.

View Replies View Related

Differentiate Page Requested Versus Page Refresh

I encounter a page reload situation in ASP. It is I need a way to differentiate whether the current page - "Application_Result.asp" got reloaded itself when user click on the browserRefresh button or is requested by the previous page "Application_Form.asp".

I tried using
<%if Request.ServerVariables("REQUEST_METHOD") = "POST" then%>
<!--it is requested from "Application_Form.asp, do something-->
<%else%>
<!--Application_Result.asp refreshed itself(such as user clicks on the
browser Refresh button, do something else-->
<%end if%>

However, in both cases, the IF statement above all evaluated as true. how to differentiate this two different behavior (Page Refresh versus Page requested by another Page) ?

View Replies View Related

Page Can't Directly To Login Page After Session Expired

I have page for user to update his/her details. What i want is after idle for more than 20 mins, the page will redirect to login page automatically. So that the user knows that his/her session already expired and need to login again.

But it doesn't working. This is because if he/she update the details (after idle more than 20 mins), and click the Submit button, it will go to login page and all the data will be lost. Code:

View Replies View Related

Can An ASP Page Read A Cookie Written By A PHP Page?

I am working with a developer, on two portions to a site, he is working in PHP and my work is done in ASP.

Is it possible for my pages to request data from a cookie that was written by his pages that are PHP but residing on the same server? Just want to make sure before I spend too much time planning out the development on my end.

View Replies View Related

Passing Information Back To ASP Page From Another Page

I have an application which allow users to search our database. Quite a lot
of search fields pull data from other tables. I don't want to populate the
dropdowns (total 14 of them) from the database everytime as it slow the page
load.

Instead I would like to have a link next to the text field which a
user and click and the choices can be displayed and whatever the user click
in the pop up I want to transfer it to the text box and close the popup.

For example there is a Textbox called country. The user can either type in
the country name or click on the link which will pull all the countries from
table in the database and which ever country user selects, the textbox is
popluated with the country name and the pop up closes automatically. Code:

View Replies View Related

Attempting To Write Create An ASP Page FROM An ASP Page.

I'm trying to write an asp page line by line, as one would create a
text file, only my file will end in .asp.

One line simply writes a close ASP code tag, or

FILECONTENTS=FILECONTENTS & "%>"

When this line processed, an error occurs saying that the string was
never terminated because the asp page attempting to write this line of
code to a NEW asp page reads that close ASP tag (%>), as an actual
close asp tag for itself, instead of a STRING value.

How do I write this %> symbol to a new asp file, while still
maintaining its purpose to close a group of asp code in the newly
created page?

View Replies View Related

Refresh Parent Page From Child Page

This is my coding:

window.opener.location.reload(); window.close();

I don't want the IE to pop up the alert msg to false retry or cancel to reload the page.

I have tried:

1. window.opener.location = window.opener.location
2. window.opener.history.go(0)

But as i carry some data from previous previous page, when i use (window.opener.location = window.opener.location), it can't capture my data as it just load the page. It will pop up error as no data captured :

Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'

Any suggestion?

View Replies View Related

Passing Recordset From An ASP Page To Another HTML Page ?

I am looking for a way to pass an ADO recordset that has been retrieved in
an ASP page to another HTML-page. Is there someone who can provide me with a
small sample or a link to see how this is done?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved