I am allowing user to download files from our site. I have set
<% Server.ScriptTimeout = 1200 %>
Still user get server time out error. I want it should not discontinue user ,i mean allow user to download till the end . what to do? what is the harm in it?
how to ftp to a system? when they enter the username and password i should be able to access the folders in that system and download a file that they choose from there to the site... is that possible???
I want to make a support-page where people can download the latest help-files (these will be in a database) but I don't know how to do this (I only know the basics of ASP). I don't mean that, for example a pdf, should open in another window. When you click on the filename it should give the standard downoad-box 'Open', 'Save', 'Cancel'.
Does anyone know how to do this? Or maybe there is some code on the net that explains it.
I have to do something like this that a user see list of record if he would find record and want to download that list then a button should be available on page so that he could download that list in a pdf file of that record.
I'm trying to force a file download using ASP but not getting very far... I want the browser to send .pdf files to the user rather than trying to open them within IE (or wotever browser). Does anyone know what code I should use for this?
I am creating a series of downloadable articles, career tools, spreadsheets, etc. However, some of the content is for "registered" guest. The registrants are stored in a database and logon.
I want to ensure that someone registered cannot simply pass someone the path to the files for download. However, I am not creating an actual system user name for the folders where the various documents exist.
I don't want someone to logon, retrieve the path to a file, and be able to send that path or return to that path without having to logon.
How do I accomplish this?
Consider the following: serverroot/registeredcontentfolders would be protected by a single logon name - not accessible via anonymous access. User's logon to site and I auth them with their user name but on the server side, auth with the single account I am establishing for access to the protected folders.
I have excel, word, zip, jpeg etc. files in my database. I can view them by asp from web page but I have problems: When I Request a file from database: 1. I click on the file it brings me the message if I want to open or download the file. Content-type works but file name cannot be recognized. It gives always the same name for the file. Example: I click cv.doc file, in popup message "download or open" File Name part is always file.asp It should show cv.doc at file name section. What is the code for it ? Below what I use but missing I guess. This is how I request the file.. <% rs.Open "Select * From Files Where Id=" Request.QueryString("Id" ) , connStr, 1, 3 Request.ContentType = rs("FileType" ) Request.BinaryWrite rs("FileBinary" ) %>
I have lots of files and i need to download them using an easy way. I only cany think how to getting the files , file by file. is it a quiker way to to this like downloading a foler o compressing them and downalod the compressed file?
I am unable to download zip files from IE browser. Everytime I click on the download button, instead of prompting me to save the file, Internet Explorer opens the zip folder instead.
I think this is because I have previously instructed IE to open zip files without prompting (there was a check box to do this). Is there any way I can revert to the original settings?
I have tried resetting my Web settings, as well as setting the Security level in the Internet Options, but to no avail. I am totally unable to download zip files using IE now.
How to set the default value so that IE prompts me to download the files than opening it in some location.
The below code forces a prompt to the user to open or save the .pdf file file to their local machine. It seems to work great except I have one user who can not open any .pdfs using this prompting method. He gets an error that says "File could not be found". However, if we choose the 'save' option instead, we can save the file to his local machine. He can open .pdf files from normal links to .pdf files. It's just this prompting method that is causing a problem. So, I'm perplexed.
I did some digging and found that there is also an FSO (File System Object) method (which may or may not solve my problem), but I'm not sure how to impliment the FSO or if that will even help me with this.
Set adoStream = Server.CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(thePath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End
This works fine for 250KB - 500KB PDF files, but I've just uploaded a 6MB file and it simply doesn't seem to do anything. The code does nothing which in turn means that the standard Save dialogue box can't find the file.
I want to know if there is a way to check that a file for download is downloaded completely or not. (for example i want to give permission to each user download a file just for once. but if there connection get disconnected they allow to download as much as they want until they download it completely). is there any way to understand that?
Is there a way where an end user can download multiple files with one click?
I have a database table that can return between 1 and 12 different filenames (JPGs). I'd like to have a single button on the page that will initiate the download of all of them simultaneously. Is this possible?
i would like to display the files in my database...and create a link for it...then when the user click on the link,they'll immediately see the download doalog box instead of the file's contents...currently im only having a coding which will pop-up the download dialog box...
I'm having trouble with my first IIS6.0 on Windows Server 2003.
The web site works fine: all ASP pages are processed and displayed normally. The problem is we are not able to download any files from the site (pdf, zip, doc, ...) When you click on a link pointing to one of these files (or if you write the file's absolute URL in the address bar of IE) you get the normal Open or Save as dialog. Whichever option you choose, the next window is an error message stating that the file cannot be downloaded. The strange part is that everything else is working fine, it is file download what fails, exclusively.
Is this something that needs to be enabled in IIS6.0? Do you know anything about this issue?
I want to convert this site for San Franciso. For seo purposes, about 70% of ALL files begin with "santa-barbara" OR have that phrase in the file name string.
Is it practical to write a script that would go through the whole web site and rename all files to change "city" names like this? I could then use VS to do a find and replace in the actual files themselves. If this is possible and not too laborious, can someone share a script or point me to one on the web.
We have a WEB-based application (developed in Visual Studio 2005) running on handheld devices in Internet Explorer on Windows Mobile 2003. The application needs to print tickets on a Bluetooth printer, which is accomplished by preparing a RTF-file on the server and then downloading this file to the handheld device. We use a third-party application (PrintPocketCE from FieldSoftware) for the actual printing of the downloaded file. However, when the file is about to be downloaded we first get a question saying "Download <filename> to the My Documents folder in Main Memory?" with Yes, Change and Cancel buttons.
Is there a way to avoid this question and download the file directly? We need the checkbox "Open file after download" to be checked (as it is by default when the question is displayed) to get the file processed by PrintPocketCE after download.
To avoid adding file by file to the handheld device we always use the same filename for the downloaded file. This leads to another question on each download, asking whether to overwrite the previously downloaded file. Since the file has no interest after being printed this question is always answered with Yes. Is there a way to avoid this question too, for example by setting some Registry value?
i have recently completed and tested a site in using IIS on my desktop as a server, and everything runs fine. Upon transferring all the files up to the Real Server at work, the ASP pages are not displayed as i get an error saying that the include files caanot be found.
The include files for my ASP pages are in a folder called 'includes' which sits in the same dir as the ASP files. This setup works fine on IIS on my desktop, but for some reason, this same setup is not working when the files are on the Server. Has anyone got any ideas as to why this might be happening?
When I try making changes to aspx files in a SharePoint Windows Services web site, I get an error message saying that Visual Studio cannot open a SharePoint site. Is that true, if so, how can custom changes be made?
I am to build a site onto an ASP server. Anyone here used Dreamweaver and is it just a simple matter of opening up a new ASP page in Dreamweaver and build the site like you would normally do with a HTML page and it will handle the ASP coding accordingly and you can just simply upload it onto an ASP server and it will work?
The site I am to build is basically just a standard html website, but my friend wants me to build it for an ASP server so he has asked me to make sure it is an asp site so I am presuming with the extension .asp
If I build it as a html site to begin with, will converting it to asp be hard. Could I just export my pages into asp or is there more to it?
Can a Html website be loaded and working on an asp server or host?
Is it possible to have a site mixed both html and asp, eg. the home page is html and when you click on shopping cart on the home page it goes to a hopping cart page thats .asp or do they all have to have the same extension.
I have to pass form data from my site to another organizations site using POST method... how exactly do I do that? Im familiar with how to do it within a single site/domain, and cant use querystring... I dont know where to begin.
Whenever I do a site that is mostly static but with some semi-dynamic sections, I've struggled to find a good site search solution without paying for a hosted search service.
I like the FSO-based search engines, but they fail to pick up on some of the dynamic part.
I was just creating a Google sitemap and it made me wonder: has anyone created or seen a script that uses the XML Google sitemap to power a search engine for your own site?
Seems like if you were keeping it updated for Google, why not use it for your own site?
I have a website that we display images we have saved into a SQL Server 2000 database as binary BLOB. This is on a Windows 2003 Server. Just recently (a week ago) this website began to save the images it is displaying on the website as ASP pages in the Temporary Internet Files > IE.Content > Folder.
We have other websites where we use the exact same code and these do not save files on the server when they are displayed.
Here is the code to display the image: Set rs = objConn.Execute( SQL ) Response.ContentType = "application/octet-stream" Response.BinaryWrite rs("Product_Image")
SQL is the SQL String to get the image from database
When I add this code:
Response.ContentType = "image/jpeg"
The images still display on the website, but now are saved in the Temporary Internet Files folder as JPG's.
Can a php file be executed inside an asp file? I need to execute a php file in another asp file but i'm not so sure it's possible. My server can run both asp and php and they run without any problems... I just need to find a way to include the execution results of the php file in the asp one. Is it possible to use SSI and include the executed php file and then the executed asp file in a main ssi file?
I have installed PWS in windows 98 in each of the system at various places and put my Sales program files in the WWWROOT directory in all the branches. I'm afraid that the users may tamper my ASP files. Is there any way of converting .ASP files to .exe files so that the dont see my program.
I was wondering how some sites let you search by using a form, then present the results as static .htm files.
The reason I ask is that I tend to use ASP to process form information, then give the user a list of results presented on an .asp page. The list is simply drawn from a database in real-time and formatted into a template page.
The problem with this is that search engines can't see any of the information in the database, since they can't do the form submission. Is there a way around this?
I am trying to download files from one website to another for purposes of caching. In trying to do this, I created a VB dll component (using VB6), that used URLDownloadToFile, to allow me to download the file onto the receiving site. The sending site supports an ASP page that allows the file to be downloaded.The component works fine when run in debugging mode, placing the file as expected. But when not debugging (but registered), it reports that the file has been downloaded, but the file is not there.
I am looking for some VB Script tutorials possibly as a pdf file that one can download and take print out of as one single file. I can see a lot of VB Script tutorials on the net but not offered as a single PDF file all in html format and explained on different pages.