"Cannot Download" An Excel File From An ASP Page
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
ADVERTISEMENT
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
My boss wants me to develop this page so that users can click on a button alongside an employee's page and this will open up the company Expenses Claim Form with some of the fields automatically filled in, pulled from the same SQL database that the webpage gets its info from.
I have been looking this up for *weeks* now, but the only solutions I can see involve the dot net framework, 3rd-party plug-ins or installing the Microsoft ODBC driver for Excel. My boss will not accept any of these solutions, as we are a huge organisation and this has to work accross the entire system. We're stuck with MS Office 2002, Windows XP and SQL Server 2000.
So far the best I can manage is getting the Excel form to open (but without the fields filled in), which I accomplish using the following code:
View Replies
View Related
Basically, I want to have an asp page that has a button where when you click on it, it opens up a file open dialog box where you can search for any excel file you want to import. Then, once a file is selected, I want to read all the contents of the excel file (from column A) to display into a listbox on the screen (so that each individual row from excel file would be a separate item in the listbox). Also, this data would have to be inserted accordingly into an access database .....
View Replies
View Related
I am in need of allowing permissioned users of a particular web app using ASP to query a table and then allow them to download an excel formatted version of the data they can use offline.
View Replies
View Related
I am trying to download a table of data from an ASP page into Excel. The link opens Excel OK and creates a worksheet with the name of the ASP page, but no data is transferred.
If I remove (comment out) the Response.ContentType line from my code, then the table appears on the asp page.
View Replies
View Related
i have a excel download which works fine, but the format is incorrect if i need to re-upload the worksheet to the database via a file upload.
so i think the problem is that in the download i am using a table format with <tr><td> etc. how can i change these to just be cell entries?
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
Downloaded the sendMail.htm and sendMail.asp sample files
from technet onto my IIS 4.0 server. The first 2-3 times
I tested all went well. Subsequent tests, with no server
changes, gave/gives me the "File Download" dialogue box
when the sendMail.asp file should be executing. Why does
sendMail.asp give a "File Download" box instead of just
executing?
View Replies
View Related
I need to have script that automatic download files (open a "save file
dialog box") based on a variable (value in the URL).
Example:
files.asp?file=1 shall automaticly download file1.mp3 (open a dialogbox for
saving file1.mp3)
files.asp?file=2 shall automaticly download file2.mp3 (open a dialogbox for
saving file2.mp3)
View Replies
View Related
I want to be able to let users download movies from my site, but when they click on the link it opens automatically with windows media player. Of course, they could right click and save target as, but the majority of users don't realise this.
Is there a way to tell a page to send the file to the browser as an attachment and force them to save it to disk i.e. not open automatically.
View Replies
View Related
I have to write a code for download file in asp.
View Replies
View Related
i just want to find out how do i make a file downloadable, like when it gives an option to save or open the file not only open it.
View Replies
View Related
How can i download a CSV file the same way a i could with a Excel XLS file using teh below at the top of the page: Code:
response.contentType = "application/vnd.ms-excel"
View Replies
View Related
can't use filesystemobject to create txt file on my C: drive. gives me access denied error.
I used same object to create file in the directory on the web server but how can I download txt file using something like a simple hyperlink to the exe file. a hyperlink to a text file simply opens that file in a browser.
View Replies
View Related
I want the MP3 audio files to be able to download by users only. Even I set the pages validated by session, anyone still can type the download url to get my files without access of the pages where download URL provided. How can I do in order to prevent everyone from downloading without a user account?
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
Currently i am doing a file management project where user are able to create folder and upload files to it. The file ownner would be able to set permission (from database linking to the file path) if a user able to download it or not.
*each file info will be stored into a table e.g. fileid, filename, path, access.
Now i am facing a problem where if a user does not have permission to click on the link to download, the user can guess the path and the file name and directly type the path on the address bar to download the file.
View Replies
View Related
i want to be able to write an asp.net function to download files.
For example, brinkster.com hosting service has a COM component that allows a stream of binary data to the client from the server so that the client will be prompted to download the file.
here is the syntax:
Set Upload = Server.CreateObject("Persits.Upload")
Dim SysFilePath
SysFilePath = Request.QueryString("filePath")
' Parmeters:
' 1. Path to file to download
' 2. Yes, build content-xxx headers
' 3. Use this value for Content-Type header
' 4. Include the word "attachment;" to Content-Disposition to force download
Upload.SendBinary "premfs3sitespremium8jaydakissx22webrootmyFile.txt, True, "application/octet-binary", True
How can I do this in asp.net without using the "Persits.Upload" COM object?
View Replies
View Related
I have a script in ASP 3.0 which creates a CSV file on the server. After the
code has run I want it to prompt the user to download the file (via the
browser). I have spent a frustrating hour trying this.
View Replies
View Related
I want to get dialog box(open,save,cancel) for pdf file using asp(vbscript).
Presently when i click on pdf link on the site,the pdf document opens in
the browser.
I have used the below code(download.asp?file=filename):
<%
Response.AddHeader "content-disposition", "attachment; filename=" &
request.querystring("file")
Response.ContentType = "application/octet-stream"
%>
This file resides in the same dir of pdf documents Code:
View Replies
View Related
how do i create a file download utility that limits the number of users? for example, a maximum of 5 users can download a particular file at the same time.
i can use asp (not asp.net), javascript, maybe read/write a text file if necessary.
View Replies
View Related
if anyone had any script that can allow a page to run some code and then kick off a file download.Maybe like many places do saying download should start automatically or you can "click here".I appologise if this is easy to work out from the source of one of those pages, but my view source seems to have died and I thought an answer from here might be quicker than fixing it!
View Replies
View Related
i have a file *.num and when i enter the full URL to download it he give my
a 404 error !
but when i rename the *.NUM by *.TXT everything coming ok !?
so how i can tell to IIS6 to accept *.num files ?
View Replies
View Related
How to force a file download
Is it possible to use ASP to create something like, the following webpage, where you click on the download Mozilla now and up pops the downloader.
http://www.download.com/Mozilla-Fire...eatured.editor
I need to make it so that I can download a .WMV video file. because giving users the direct link doesn't work and I think its alot better than asking them to right click and save item as..
View Replies
View Related
I wanna make a link for my visitors to download some files in my website.How can I do so?
View Replies
View Related
I am trying to write a routine that allows users to download files from our secure site, with the code below the file will download and when you click save i get an IE error. However when the page is not https the routine runs just fine. Any Ideas?
View Replies
View Related