I have a guy asking me about the speed of downloads from his web site. I use
ASP code to send the download to the user, and the code I use is basically
like this:
FileName = Request.Form("FileName")
Path = Server.MapPath(FileName)
Set Upload = Server.CreateObject("Persits.Upload")
Upload.SendBinary Path
Set Upload = Nothing
Is there anything that can be done to make this more efficient and to send
the file faster?
I am currently putting together an eCommerce site. I have almost everything in place, but I am not happy with the category system for our products.
There are around 2500 products in a SQL Sever db, each assigned 1 of 300 odd categories. Currently, I have statically built the category tree but wish to automate this task as it is becoming increasingly difficult to manage.
I have googled plenty of info, specifically for ADO data shaping. Is this the right route to take, especially considering each branch of the category tree may differ in depth of categories? How exactly do other eCommerce sites automate this task?
I would also want to be able to copy the category system that provides links to previously selected categories i.e.
Category 1 > Sub Category 2 > Sub Category 3 > etc etc
Is this possible with the SHAPE command? Are there other methods of performing this task?
I am particularly concerned about the database taking a major performance hit from all of these SHAPE queries, which would be required on every category page. Could I use a stored procedure, and how much would it improve performance? Considering I will be hosting on a shared server, I want to make this as efficient as possible.
I am working on a project that involves importing IIS Log files into a SQL Server database (and these logfiles are big --> Some up to 2GB in size).
Up until now I thought that DTS or the BULK INSERT command was the fastest method out there, but still proves to be long (taking an average of 45mns to an hour to process each log file).
Because I have to import the log files from three web heads in my cluster (therefore 2GB log files per server times three servers), this really throws off the concept of "real time" or near "real time" reporting.
So that begs the question. WHAT IS THE MOST EFFICIENT, AND QUICKEST TEXT-FILE TO SQL SERVER IMPORTING TOOL, METHODOLOGY, SAMPLE CODE, WHATEVER, OUT THERE??? Code:
i have an ASP (iis v5.0) application that generates a pdf file and this file is saved to the server. it is saved in a location not available to web users. i have an asp script (below) that sends the pdf file to the user as a binary stream. So that the user specifies which file to upload, the script performs some security checking and if it passes, it sends the pdf document.
This works great in HTTP, but i want to do this using SSL. When i try the same thing over SSL, it gives me a 'File Download' dialog box with Open, Save, Cancel, More Info. The file name is the name of my script and file type is 'Adobe Acrobat Control for ActiveX'.
When i click Save or Open i get an error message: Internet Explorer cannot download [scriptname] IE was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
The key to all this is that the report can change and i need to make sure the data doesn't get cached along the way. Hence there are a bunch of header manipulation commands included in the send function. Code:
I'm trying to get an ASP to return a zip file to the remote browser from an Image (BLOB) field in SQL Server 2000 but Internet Explorer keeps saying:
Cannot open C:Documents and SettingsFrostillicusLocal SettingsTemporary Internet FilesContent.IE5U7GXENGFfile[1].zip
The URL to open the zip file is like this: doc_view.asp?id=1&ver=2
....where id and ver represent the zip file's version in the database. The code I've pieced together to return the zip file is as follows (note: this code works fine for PDF, JPG, DOC, XLS, GIF, and all sorts of files - just not zip - HOWEVER, if I click "save" instead of "open" in the download box then open the zip file manually, it works fine - Internet Explorer just won't load WinZip for me automatically) Code:
i want to send an email from a web app with an attached file. the form is for users to enter email addresses to whom they want the attached file sent. I'm using ASP and CDONTS mail. Code:
I've used the search tool and found several pages regarding sending faxes under ASP, but they all seem to suggest using some internet faxing service.
I don't know if this is possible, and it probably isn't under XP without additional software. (Small company, simple intranet site built on IIS.) I have a PDF form for an agreement for our customers.
Now, I already have a page setup where our reps simply input the customer's email address and it will send the form as an attachment. What I would like to do is make another page where the rep just puts in the customers phone number and it will fax the same pdf to the provided number. Is that possible through ASP on XP?
I've been looking around for some solution and I found this:http://support.microsoft.com/kb/303647 for W2K.
I am looking for some routines or methods (if available ) in ASP where i can send a fax through ASP by pulling the Fax number of the sender from the DB.We have a Faxserver which is WinFAX.
I saw a few softwares but there is some cost involved in it.If anyone knows how i can send a fax through ASP without paying.
Does anyone know how I can integrate an ASP application (made by myself) with another application that sends fax? I've seen many programs, but I need something that needs only few code rows so that I can integrate these rows in my ASP pages .....
I have a few queries regarding on email. Currently my web hosting provider uses Windows 2003 Server IIS 6.0 to host my ASP websites. In my own PC, I am also currently using Win XP Profession IIS 6.0 to run my ASP files.
I would like to create a pogram that would automatically sent out an email. But the problem is I have know that CDONTS do not work for Windows 2003 Server or XP Professional. It only currently work for Win 2000 Server.
Please help and perhaps show me the code of sending an email out automatically. Is there a code that can work for all servers?
I have a form which will be processed by being sent to an ASP page. I would like the ASP page to take the data from the Request.QueryString (which I know how to do) and format it so I can have it emailed to me in a nicer format. My problem is that I do not know how to have ASP send an email. I know how to send an email using the mailto: protocol by making it look something like the following:
However, this will usually take the user to their default email client and ask them to send an email by putting the specified subject and message in for them, but wait for them to do any desired editing and click their send button. I simply want the email to be sent straight from ASP. Is this possible?
I've been using CDO to send email from my web server for a while now but today the emails aren't being sent. They are in the queue folder on my server. I've restarted SMTP service but that didn't work. How can I get these sent?
I want to write a code for sending mails using CDO object in ASP. can it is possible to send mail without mentioning name of smtp server.I am using 2k3 O.S. Also one more problem i am facing , i want to send a mail in HTML format, when receipient receive that mail some times it shows in proper HTML formated mail but some times it not showing(it just shows html tags in mails) . I am using .htmlbody property of cdo object.
Im have made up a form that sends the information via email to an email address. Whenever I test the form though, the email does not display in HTML format. The email displays the html code but I want it to display as an html page.
I am trying to send an email to someone as the person clicks on a link...i have been trying the CDO, CDONTS, JMail and other methods but none of them work!!an example is as follows:
Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a message." myMail.Send
I' m using opertion system XP PRO,i have instelled the IIs 5.1. im trying to simulate sending email to my outlook express but it'snt working,somebody can tell me if i need to install any other componente?
how to conigurate my smtp(what is my host name,how can i find it)?
I need some advice on how to write an email script in asp. I am farely new to asp but so far i have manage to understand most of the materials i've covered for this language except for sending emails from a form.
I've read the following tutorial ->URL twice, but i can't get the script working.
What am i doing wrong?
I am working on my personal box at home, do i need to have a mail server running? do i need to have addtional asp component install?
i use a personal web server and i'd like to send a mail into an ASP page. Usually, i use CDONT component but it seems it does not work on Personal Web Server.
Could someone advise me on the best way to send email either using asp or html? I'm not sure which way would be best. Basically I have a page confirming that data has been entered into a database and displaying what has been entered. I then want to have a link to email the information to someone. The email address has already been entered into the database.
I have emails being created and sent using CDO and it is working well but, the email is being sent twice. I only call the .send once (per person) but it comes through twice. Code:
I need to send a URL from a form to another .asp page through the querystring. I can't use request.form because I am uploading images at the same time and it isn't working. It seems to only work when I do Request.Querystring.
So is there a way to do that, I keep getting errors whenever I try I think because the URL has characters in it that messes it up.
like: http://www.domain.com/today?today=321%321
But something like this works fine: http://www.domain.com/today/