How To Not Cache All Elements Of A Web Page Download?
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
ADVERTISEMENT
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
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
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
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
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
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 an .asp page to relay data to an MS SQL DB. The page runs fine on some machines but attempts to auto download itself with a "file download security warning" dialog.
Some of the machines are configured identically but problem occurs on one and not the other. IE settings on two machines are identical and it happens on one but not the other.
View Replies
View Related
i m having a problem with an asp page attempting to download rather than run its contents. The page is designed to relay data to a secondery server and populate a MS SQL database. I have run the site with this page on a number of machines and it works on some but attempts to download the file on others; bringing up "file download security warning" dialog.
Additional weirdness comes from the fact that I can have two identically configured machines and yet one will work fine and the other will attempt to download the asp file. When I say identical i mean all the IE security settings are exactly the same.
View Replies
View Related
I have used the "Microsoft.XMLHTTP" object to successfully download web
pages from other sites.
However, I need to download a page from a secure page. Can anyone point
me to sample code for that? I need to "post" data to a form on that
page, so any sample code for that would also be helpful.
View Replies
View Related
I have used the "Microsoft.XMLHTTP" object to successfully download web pages from other sites. However, I need to download a page from a secure page. point me to sample code for that? I need to "post" data to a form on that page.
View Replies
View Related
I developed a login page and use Access as the database. When I test it using http://localhost, it works perfectly. When I upload it to the web server and click on the link, a file download box pops up asking me if I want to save or open the login.asp file. Why doesn't it work now?
View Replies
View Related
I received a "friendly" message of fellow webmaster saying that I had a security issue whereas it was possible to download my original ASP code.
As a proof he emailed a copy of one ASP page of a website I have been working on.
View Replies
View Related
I want to write a ASP page to open/download a file In fileview.jsp, I have the file browse, and when user click submit button, fileview2.asp should open the file.
fileview.asp
============
<FORM ACTION="fileview2.asp" method="POST">
<P><input type="FILE" name="filename">
<P><input type="submit">
fileview2.asp
============
<%
String filename = Request.Form("filename")
Response.Redirect = filename
%>
However, this is not working. any ideas?
View Replies
View Related
I'm looking to display a page and then initiate the downloading of a file.
Basically trying to display a page that says the download will begin
shortly, and if it doesn't, click here. Like what you see at a number
sites.
I found code to initiate the download in a previous posting ("Force Download
fails when I select "Open" but works when I select "Save"", posted Jan 25,
2005). The code works fine in terms of initiating the download. The
problem I've encountered is that the download begins before the page itself
is displayed.
View Replies
View Related
The ASP application uses the "File" active-x control. On windows 2003
IIS(6.0), the download the file fails with the Error: Request object error
'ASP 0104 : 80004005'
The above error is retuned by my asp code: lnBytes =
Request.BinaryRead(lnByteCount)
I did not see this error on windows 2000 server. Is there any solution/workaround available on Windows 2003 IIS(6.0) for this issue.
View Replies
View Related
When one of my users are navigating my ASP website, and click on submit type
button to move from Page1.asp to another ASP page, Page2.asp, they are
getting message like
"Internet explorer cannot download <asp pagefrom <server>. Internet
Explorer was not able to open this Internet site. The requested site is
either unavailable or cannot be found. Please try again later."
But other users are not experiencing this.
I also have seen http://support.microsoft.com/kb/316431/ but it doesnot help
me.
Can you please tell me what should be done to avoid this error. Do I need
to check any web browser settings?
View Replies
View Related
I am having trouble downloading an excel report generated from our AS
pages. We presumed it was something to do with the SSL certificate w
just installed, so loaded the ForceSSL.inc script from Microsoft an
changed the cache settings by changing this code in our globals.as
file:
Response.AddHeader "pragma","cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "private"
Now we are having trouble with downloading about ten of the twent
five reports that we have. Does anyone have any ideas?
View Replies
View Related
i'm having a bit of trouble inside a loop displaying values for session variables that are wrong the code thats not working looks like this:
Code:
Response.Write"<tr><td>Answer "&counter&"</td> <td><input type=text maxlength=50 id=option"&counter&" size=50 title=answer"&counter&"value value='"=session("answer"&counter&"")"' name=answer"&counter&" /></td></tr>"
its enclosed in a loop with the counter element increasing to the given total and its meant to set the value of the text box (the session variable) to display the value.
in plain ASP and html all thats needed for the normal input box to display a session value is :
Code:
value="<%=Session("variable")%>"
View Replies
View Related
i have one array of string and it contains 51 elemnts. it will get bigger and bigger but i want to read these array ellments from a text file.this is possible?
View Replies
View Related
I'm using Visual Web Developer Express 2005 to get me started - probably a bad idea I'm told. Anyhow, I've connected a drop-down list ('Components') to a column in a SQL DB, and, upon selection, the resulting gridview is being generated as I hoped (with the corresponding 'Applications').
However, I would like each of these resulting rows in my gridview to be "clickable" as a hyperlink so that I can display each of the applications details on another page. If someone could enlighten me as to whether/not this is even possible, and if so, how?
View Replies
View Related
I am aware of how to create elements, attributes on the fly with the Microsoft.XMLDOM however I was wondering if anyone had any examples of how you could extend this to insert the content created in to an existing node.
Eg
<root>
<section> <- INSERT ELEMENT HERE -> </section
</root>
View Replies
View Related
In my ASP page I have a set of menus on the left side and list boxes just on its right side. Whenever I click on a menu and the submenu appears it gets hidden under the listboxes and cannot be read properly.
The page design cannot be changed at this point of time and the listboxes cannot be moved to any other position of the page. So is there any property or function so that I can make my menu elements appear above the listboxes.
View Replies
View Related
Like in PHP you can use:
PHP Code:
$length = count($array);
Is there an ASP alternative? I'm using VB4.
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
I have this form that collects text values and I use VBCrLf as delimiters to tell one element from another. Sometimes, I get several empty elements. Is there a way to remove those elements?
View Replies
View Related
I have an html file where I put a date (im_lixis) in a form and I also have an asp file that checks this date and if this date exists in my table timologisi in ms access I want to display all the recordsets with this date.
I dont know what I'm doing wrong... but when I run it.. it takes some time and then tells me that I got out of time ... without telling me if I have something wrong in some line Code:
View Replies
View Related
I'm inserting elements into a 2-dimensional array from a form like this..... Code:
View Replies
View Related
Does anyone know how to get the number of input tags contained in a div tag? I am trying to build a dynamic list of checkboxes from a database and I don't know how many checkboxes i have until the form is built to do some validation.
Probably using client-side javascript - something like
var obj = document.all.tags("div").item(0)
var mydiv = obj.id.indexOf("chk0100")
But I am not sure how to specify the name of the input tag.
I dont know what the above statement does.
View Replies
View Related
Is there any way to extract the form elements' value without submitting the form. I want the value of the form element be used in the script written in the same page without submitting the form.
View Replies
View Related
this may seem like a very basic question but one I could do with having answered!! I have an the following array TableArray(20, 100) and I need to start off with all elements in the array to hold the value 1. Is there a simple way of doing this or do I have to loop throuugh the array setting the values?
View Replies
View Related