Opening PDF Within IE7 - File Could Not Be Written To Cache

I have a page in in ASP which lists static links to PDF files. When
users click on the links, they receive the following message:

right-clicking on the link and selecting "save target as" generates
the following error message from IE7:
"The file could not be written to the cache"

Clicking the link, and selecting "save" from the resultant dialog
generates:
"Internet Explorer was not able to open this Internet site. The
requested site is either unavailable or cannot be found please try
again later"

This page works fine in Mozilla.
I've researched this a bit and have read about the caching issues,
although none of the pages on the site address cache control. Any
thoughts or ideas as to why this isn't working?

View Replies


ADVERTISEMENT

Include File Written In ASP

I want to allow my users extensions and things via include files. I need the script to look something like this...

<!-- #INCLUDE FILE="<%=grargareg%>" -->

but ASP doesn't accept values like this... is there a way around it some how?

View Replies View Related

Opening A File

I have a drop down on a page where user selects a value and then a excel file opens up
it works good in mozilla but in IE it doesnt open up the excel file i see a new page been open but then suddenly it closes the file
i have checked the popus in IE and i dont know what the problem is
Here is the code Code:
<%
Response.ContentType ="application/vnd.ms-excel"
getid=Trim(Request.querystring("id"))
Response.write getid
%>
I see the output written when i use mozilla but it just doesnt work in IE.

View Replies View Related

File Opening

From a LINK or BUTTON on a webpage can we invoke the usual OPEN FILE dialog box that come with all the windows application .

In my Application I want to ASK the user the Name of a FILE on the disk ... currently i am asking the user to input the COMPLETE PATH in a TEXTBOX ....

View Replies View Related

Opening .csv File

I need to incorporate some emails that are in a csv file, all sorted in one column, into a mySQL database.I dont find the way to open the CSV file in ADO

View Replies View Related

Opening A File

I have a configuration.txt file and would like to open that file in a browser for editing onclick of a button or hyperlink!! It is more than enough for me, if i just open the file as it is in a notepad itself, by clicking a link from the ASP code.

View Replies View Related

Opening DB Connection In ASP File

I am trying to open a DB connection in an ASP file (with an HTML interface). I have some idea how to do it, but I am not quite sure. It is linking to an Access DB. It is very simple, I am posting some data to the DB. Only one connection is needed to open.

View Replies View Related

Opening File Problem

I have a field in the table that saves pdf file paths:

there are 2 records like this:

/docs/one.pdf
/docs/one&two.pdf

what i do is display the paths on the page and when people click on it the file is opened

this is how i display the paths

<a href="<%=RS("Path")%>"><%=titlename %></a>

the first file one.pdf opens up
the second file one&two.pdf doesnt open up

if i change the name of the path in the table to

/docs/onetwo.pdf it works

so i found out the & is causing the problems

can someone tell me how to fix it.

View Replies View Related

Downloading Or Opening A File In Asp

I want to create a asp page where i can give the user an option of downloading a file or opening a file e.g an excel file.

How do i do this?? Ive already created an asp page which has a button- where the user can click on the button. The excel option of either opening the file or downloading it comes up- but i want this option actually on a asp page. How do I go about this?

View Replies View Related

Opening File For Appending

I want to open a text file for appending purpose but it gives me the following error..

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument

/cgi-bin/Anagram_Utils/welcome_letter/generatedoc.asp, line 19

Code: ......

View Replies View Related

Opening Word File In Explorer

I want to open word file in explorer. I am using hyperlink for this purpose but it doesnt show me the file opened. Though i able to do save as on it.

View Replies View Related

Got Error In Dll While Opening The Excel File.

I have created one dynamic chart creation application using vb dll. If I call this function from vb it is working fine. But If i call this function from ASP i got error while opening the excel file line. I have windows 2000 server. Do i need to give any permission for this? The same coding is working fine in NT server.

View Replies View Related

Page 2 - Opening DB Connection In ASP File

(incidentally, the more i look at it, the more i feel i should point out that to be totally sure your SQL statement is correct you should write it like:

INSERT INTO table_name (column1, column2,...)
VALUES (value1, value2,....)
so that you know your info is going to the right column on the table

View Replies View Related

Opening Word File From Hyperlink

I have a document saved to a public network server. The public directory grants change access to all users on the network. To keep my Word doc protected I am using the Security feature "File Sharing Options" in Word to attach a password to the document. This works as expected when users open the file with Windows Explorer.

I also have an ASP web page that has a link to my file on the public drive. When I click this link, the Word document loads without asking me for a password and is not read-only. (Note the link in formatted with an href attribute like this: file://servername/share/filename.doc)

Am I mssing something? Shouldn't the Word security work even if the file is accessed through a hyperlink?

View Replies View Related

Opening A Local File From A Hosted Link

I'm working on a document management app that saves scanned docs as PDF files in a local directory, then saves document metadata in an Internet-based SQL server.

The SQL server is then queried to retrieve document info and links are created that point to the files.

The code points to the proper local directory and file, but I can't get the browser to open the document in a target frame. If I open a test doc locally it works fine.

View Replies View Related

Permission Denied Error When Opening And Writing To File

I have a script that opens a file and writes to it using ASP. I've used the script before and it worked fine locally, until recently, after I upgraded my computer to Windows XP Pro SP2. Also, it still works fine when I upload the script to my web host. However, locally on my computer using IIS, I get the error:

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied

This occurs on the line: Set FileTS = FileFSO.OpenTextFile(Server.MapPath(".") & "" & FileName,2,TRUE)

I've searched online for answers and most articles say I have to set read and write access to the containing folder. I have done so for the containing folder and for the entire "wwwroot" folder, but the problem still occurs. I have also allowed anonymous access for my computer IUSR_XXXXX. This doesn't work either.

View Replies View Related

Pre-written E-commerce App

First of all, I'm not a programmer. I'm trying to locate a pre-written application (otherwise I already have a programmer lined up.)
I have a business that builds customized computers. I need an interface where the customer chooses the different hardware configurations and then the page displays the updated price. If you don't understand what I'm talking about Dell and just about every other pc manufacturer have an interface like this on their websites. I've looked at a lot of sites, nearly every one of them uses asp.
I need to know is if some sort of pre-programmed asp script exists to make my programmer's job quicker and easier.

View Replies View Related

Tag Written Out Unresolved

In my newsletter-application I am creating code for a "read more"-link.

If there is no fulltext-page
"else" looks like
strAspLink = ""

a few lines later I want to write it out

<%=strAspLink%>

For my outlook users the link does not appear which is fine because the special article has no read more-link LotusNotes-users see this code unresolved
<%strAspLink=""%>

View Replies View Related

Generating A Written-out Date

I'm setting up an ASP blog and part of my site's design involves setting off each entry's date in all caps (e.g. MONDAY, JULY 17, 2006). There isn't a way to type out each date manually so I want to know if there is a way to write out each blog's date in all caps using ASP.

View Replies View Related

Redirct Error: Headers Already Written

I'm getting an error:" http headers already written", when I redirect back the page I came from.

I writing an on-line store app. The page 1 lists products, desc, price in a table. Click on a product, it adds it to an XML shopping bag and , thru a link, jumps to page2 that prints everyhing in the bag so far. At the bottom of page2 is a TYPE SUBMIT button that takes you back to page 1 for more shopping. The form for the button uses Code:

View Replies View Related

Can ASP Pages Be Written In A Dreamweaver Site

I am working on a site which is written in Dreamweaver. Is it possible to write pages in ASP inside of a Dreamweaver site?

View Replies View Related

How To Create A Srting From What's Written To The Brower?

In my code, I include a file which writes to the browser. I'm looking for a way to create a string that will contain what the file I included wrote to the browser. For example, the included file (meow.asp): Code:

<% meow = 6 %>
this is a test. the number is: <%= meow+4 %>
<% response.write "hello world!" %>

And my code: Code:

...
<!--#include file="meow.asp"-->
...

I want that somehow I'll have a string in my code that contains: Code:

this is a test. the number is: 10
hello world!

How do I do that?

View Replies View Related

Opening Server-side Excel File Then Modifying It Client Side Using Vbscript

is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?

View Replies View Related

Cache

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

Way(s) Of Doing Cache

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

No Cache

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

Do Not Cache Image

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

Cache Object

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

No Cache - Frames

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

Cache-Control

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

Clearing Cache

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

Clearing Cache With ASP

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

'cache' An ASP Page

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







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