Avoid Caching Of Page

I am running IIS5.1. I am invoking an ASP page in ther server continously from the HTML Page, to update some contents of the html page. The ASP page seem to run from the cache sometimes(Not Always). I tried to give the following header to my ASP file.

Response.Expires = 0
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"

still the contents seem to get cached. how can i avoid this ?

View Replies


ADVERTISEMENT

Avoid Action Page Being Refresh

Currently i did 2 pages
form and action pages, where form will have 2 inputs, and action page will insert the data into database.

but the i have tested once i keep refresh the action page, the data will be inserted again and again, anyone know how can i control this matter and avoid sql injection?

View Replies View Related

Page Caching

I've managed to build my first site is ASP, it has a basic shopping cart and search function. I'm having a bit of a problem with pages being cached messing up the display of the shopping cart.

What happens when I add in a product to the cart is the page sends the required information via a form to another processing page, this page then adds the items to the shopping cart which is an access database and then re-directs you back to the page you were on when you clicked the add to cart button. This re-loading of the page also updates a small shopping list I have on the right hand side of the page.

if i click the back button on the browser the shopping list now looks like its empty, if I press the refresh button it fixes the shopping list to what it should be. I've tried a few things I found on the internet and none of them worked anybody know how to get round this?

View Replies View Related

Caching A Page

Is there a way to cache an ASP page on the servers memory for a certain amount of time?

View Replies View Related

Page Caching

I have a strange problem, which i think results out of a
Cache-Problem.

I have a index.asp Site with 3 I-Frames on it.

|--|-----|
| | 2 |
|1 |-----|
| | |
| | 3 |
|--|-----|

in Iframe(2) are some asplinkbuttons, when i click on one of them, the
Url from Iframe(3) is changed, works fine, no problem.

In Iframe(1) is a aspradiobuttonlist and a Button, there the same
should happen (changing Url from Iframe(3)) Code:

View Replies View Related

Control Page Caching

i need to control the page cashe so that i can enforce browser to get all page contents from the server not from temporary internet files .

View Replies View Related

To Prevent Client Side Web Page Caching

I wish to avoid caching asp pages at the user end . Currently I have declared Response.Expires=0 at the top of my asp page. I have also used the following meta tags
to prevent client side caching:

<meta HTTP-EQUI="PRAGMA" CONTENT="NO-CACHE"></meta>

but still the pages are cached at the client side.

View Replies View Related

Page Caching For Banner Management System

I'm doing a banner ad management system and am storing about 400 banners in my database. I need to pull them all and then sort them by weight and pull randomly from that sort to populate the page with banners (6 per page).

My problem is that pulling 400 banners and sorting them on every page is obviously a performance issue.

Does ASP have any sort of session or page caching capability that would allow me to cache these results and then update the cache anytime something changes with the banner database tables?

View Replies View Related

Avoid Symbol ' In The URL

how to elaborate this problem that i m facing. ok, let say ..i have a URL wit id number such as www.abc.com/memberpage.asp?memberid=12.

when i add the symbol ' at the end of the url (like that:www.abc.com/memberpage.asp?memberid=12'), and enter, it will display error for my page.

But when i try to put a ' at this web page here, it will not display any error, how can i do this with ASP languagE?how can i avoid it using ASP language ?

View Replies View Related

Avoid Explorer

I'm getting crazy with this. You know that when you install office in your computer it install a plugin for Internet Explorer so when you click in a link to any office document it opens the document inside the explorer instead of asking to save it as normal files.

Do you know how to make internet explorer ask to save the document with HTML or ASP or Javascript?I know that i can disable this option in Internet Explorer options but i don't want to make people do this.I don't want to zip the file neither.

View Replies View Related

Avoid The IE Seurity

When I use funtion--CreateObject to create an instance of Msword in the client script,
IE security will prevent my script to create. I would not like to alter the security option. how to resolve this problem?

View Replies View Related

To Avoid Many If Statement

I want to run a query from input. There are 4 input that are optional for user. So what is the simple and fastest way to do it instead of too many if statement and repeating query. What I've done now semilar like this

id = Request.Form("id")
tittle = Request.Form("tittle")
case = Request.Form("case")
desc = Request.Form("desc")

If id <> "" then
Run Query
Else
If tittle <> "" Then.......i have to insert more if statement..how can I make it more easier?

View Replies View Related

Print From Asp Avoid The Problem

I'm making an application and i need to print a report, the problem is that depending on the browser printer configuration it is printed ok or not. Is there any way to make a document, as pdf or doc, for asp to avoid this problems?

View Replies View Related

Avoid Send Twice Same Form

I have sometimes duplicate contents in a comments page because impatient people send the same form twice (they pressing in few seconds the Send button twice) . How can I avoid this?

View Replies View Related

Avoid The Windows Authentication

how can I avoid the windows authentication screen for viewing a report in Reporting Service.

View Replies View Related

Avoid Warning Message

I am writing a web app using asp.net 1.1 and C#. This web app is launched in another win32 application and this app needs to pass information to my web app. But this win32 application doesn't support long string(Maximum 255)

I hv to use an intermedia plain file and in my web app,usingScripting.FileSystemObject to open the file and read the information in. Each time when I launch the web page, I got a warning message saying "AnActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" Users need to click Yes to proceed.

All applications run in Intranet environment within a corporate network. My question are "Can I avoid this error message?" and "Can I give permission to my particular web app to run Scripting.FileSystemObject?"

View Replies View Related

Avoid On Error Resume Next?

Is there a way to avoid On Error Resume Next for:

cnn.Open strCon
SQL = "EXEC Customer @txtEmail='" & email_address & "'"
set rs = cnn.execute(SQL)

'On error resume next
rs("email_address")

'// This record does not exist thus throwing up an error. I could use On
Error to resume and then do this
'// If rs.eof or rs.bof
'//

.....But I hate this convention as I find debugging a problem. Is there a
better way?

View Replies View Related

Avoid Error Message

I have a table with "title" field set to unique In PHP I can do this following code to check whether the same input already exist or not:

$query = "insert into table (title) values ('".$title."')";
if (mysql_query($query)) {
echo "Title already exist!!"
} else {
echo "New Title saved!!"
}

My question, is there some similar method to do above operation in ASP? Code:

View Replies View Related

Avoid Displaying Data

I am using MS-Access database to display top 10 records containg title and date, and with each record a text named "NEW" is also displaying.

But I want to display "NEW" only with the records which are not older than a week. Is there some way to calculate the present date with the date of each record?

View Replies View Related

Avoid Address Bar File Addressing

I want to avoid client to open a file from my site by typing its path in their address bars . Is there any solution for that?

View Replies View Related

Avoid Google Index .doc Files

I would like to know how I can do to avoid that Google index some doc files that are on a specified folder.

View Replies View Related

Validating User Input To Avoid Attacks

I am working on a web application that uses both asp classic and asp.net
pages. We need to validate user input to avoid attacks like sql injection.
Can a component be created that both page types can use? Is that the best
approach? Would I simply use pattern matching to validate strings and/or
remove any unwanted characters?

View Replies View Related

How To Avoid Downloading A File Directly From Webserver ?

I need to provide a way to download a software and its corresponding
manual from a web page.

So far I have done the sign in page where people give their data. I
will then give access to a page with a link allowing to download the
required file(s).

My worry is how to avoid that somebody grabs the URL of the file and
send it to another for downloading directly from the server. What can
I do to avoid this ?

View Replies View Related

Avoid Form Resubmission When REFRESH Clicked

I am working with website in which a user can login and then submit some forms. I want the user to avoid re-submitting the same form twice when he uses the browser refresh or when he goes to another page and then comes back to that same page using the browser back button.

I know of two solutions:

1. Redirect to a different page after form submission - The problem with this approach is that the website has many forms. So redirecting each form to a different one is not a very feasible solution.

2. A token can be stored in session (or somewhere) after each form submission. These tokens can be verified if the form is being resubmitted - The problem with this approach is that the user can submit

one form only once. I want the user to be able to submit the same form multiple times, provided with differetn data.

Is there a suitable solution where a form with same data is submitted only once, but there is no such restriction with different data?

Can the ASP request object be cleared after form submission, so even when refresh button is pressed, Request.Form elements dont have any data? (Storing ALL the information filled in each form during that session and then comparing for resubmit is not a clean solution I think??).

View Replies View Related

Microsoft VBScript Runtime How To Avoid The Error

while updating the database through a asp page i am getting an error:

Microsoft VBScript runtime (0x800A000D)

Type mismatch:'Clng'

View Replies View Related

SELECT Statement Pulls Field Names - How To Avoid?

I do a SELECT * from table command in an ASP page to build a text file
out on our server, but the export is not to allow a field name rows of
records. The first thing I get is a row with all the field names. Why
do these come in if they are not part of the table records? How do I
eliminate this from being produced? Code:

View Replies View Related

ASP Caching

ASP Caching is not happening even i enable ASP disk
cache under websites
properties,Homedirectory,Configuration,cache options..
I have given the Full Control Permissions to IIS_WPG &
Administrator to that directory...
I am getting that cache options under
websites only not individual sites.Can i know the reason
for this

View Replies View Related

Web Caching

Just recently we have encountered a weird problem with our
webserver...running IIS 5 and W2000 SP4
When testing an ASP page, if you get an error of some sort in your browser,
when you go into the code and fix the problem, save the changes, when you
refresh the page, the error stays there, even though the code is correct.
The problem is not fixed until you rename the page, and the open it in your
browser to work fine??

View Replies View Related

XML Caching

We have a website that reads data from Oracle and creates an XML file. Then
the site uses that file to access the info faster. On IIS5 we have no
problems, but on IIS6 we seem to have some caching issuses. This deals with
the Worker Processes. By default, there is only 1 Worker Process that gets
recycled after 1700 minutes or so. The problem is, that we will select some
data from the screen, which opens up another window to update the info. We
walk through the update process and change some data and it updates the page
fine. We can even check the XML file and it is changed, but if you choose to
go back into that data, the dropdowns will reflect whatever was initially in
the XML not the changes. If I increase the number of Worker Processes and
shorten their recycle time, this doesn't seem to be a problem, but for every
request I am generating a 25M file on the server that eventually gets
recycled. I don't want to load up the memory with useless files, but I want
our application to reflect the correct data. I really need to do this without
affecting any other possible web apps that may be on the box.

View Replies View Related

SSI's Are Caching ...

Never had this problem before, but my SSI's in an ASP page are caching. I don't think ASP has anything to do with it mind you. I think it's a server issue (I've never really used this hosting company before).

Is there any way (ASP or otherwise) that anyone knows of stopping a web server caching your SSI's. It's VERY annoying!

View Replies View Related

SSL And ASP Caching

We have an IIS cluster running an ASP website. We installed the patch listed under Q239703 that allows IIS to recognize script updates and appriately not cache those ASP pages. However, since we made this change, any office documents that a user tries to download exhibit the problem listed in Q316431. We do not use any of the caching commands listed in this article (Pragma: no-cache OR
Cache-control: no-cache,max-age=0,must-revalidate). In fact we do not have anything set in the code at all with regards to caching, and the only this i can come up with is the change we made from Q239703, which is needed to stop IIS from caching ASP based pages

View Replies View Related

Caching

We are attempting to cache asp web pages in our isa server from the local county property appraiser web site to speed up access, with a 60 minute TTL (time to live).

This doesn't seem to be working - at least the pages aren't coming up any faster. Is there anything in asp that could be preventing the pages from being cached locally?

View Replies View Related

Caching

What is the best way to cache images, and stylesheets on an asp site? I currently use a .asp extension on all my pages because I use include statements to keep certain parts of my layout the same(menu, logo, footer). I have read that asp doesn't cache pages by default, and that they are processed everytime on the server. This can eat bandwidth up pretty fast.

There also seems to be a few ways to cache a page (response.expires, cache-control, public, using meta tags, and a few more).

View Replies View Related







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