Sending A File Using ASP - Is This Efficient?

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?

View Replies


ADVERTISEMENT

How Do I Build Efficient Category Trees?

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.

View Replies View Related

Hyper-efficient Text Importing

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:

View Replies View Related

Is Recordset.Find Or A Select Statement More Efficient?

i have to do a lot of searching for records in a script that i have, and i was curious whether its better to:

a) open a recordset once, then use recordset.find for each record i want to find, then close the database

or

b) open a recordset, find one record, close the recordset, open a recordset, finda second record, close the recordset, and so on

View Replies View Related

Sending Binary File (PDF) Over SSL Using ASP Script

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:

View Replies View Related

Sending Zip File From Database Problems

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:

View Replies View Related

Sending Email With Attached File From Form

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:

View Replies View Related

Is There A More Efficient Way To Do Multiple "replace"s?

Instead of repeating "replace" for every character you'd like to eliminate, is their a better, more efficient method?

SE_product = replace(replace(replace(trim(product_name), ".", ""), "�", ""), "and", "")

View Replies View Related

Sending SMS By ASP

I am woundering if I can write a code in ASP to send SMS by communicating with a mobile phone which is connected to the PC ...

View Replies View Related

Sending A Fax From ASP Under XP

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.

View Replies View Related

Sending Sms

does any one know how to send sms to a mobile phone through a website using asp without using any components.

View Replies View Related

Sending FAX

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.

View Replies View Related

Sending Fax

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 .....

View Replies View Related

Sending Email

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?

View Replies View Related

Sending An Email From Within ASP

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:

MAILTO:username@mydomain.com?SUBJECT=mysubject?MES SAGE=mymessage

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?

View Replies View Related

Sending An Email

Can anyone provide me with an example how I can send an email through ASP.NET!

View Replies View Related

Sending Email

I have made a .asp file in order to send email to my Join Bytes!:

<%
Set mail = Server.CreateObject ("CDONTS.NewMail")
mail.To = "email@email.com"
mail.From = "mail@mail.com"
mail.Subject = "email subject"
mail.Body = "email body"
mail.Send
%>

The smtp function have been installed with the IIS, there is no error and the .asp seems running properly but I can't receive any email, any wrong?

View Replies View Related

Sending Email

i have to do a project regarding employee transfer in which sending email to concerned employees yet to be transferred play a pivot role.

View Replies View Related

CDO Not Sending Email

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?

View Replies View Related

Sending Mails

I have emails sending no problem on other sections of the site but the following piece wont send

Where email is stored with a email variable from stored procedure i tested it and the value is the.....

Dim RegMail
Set RegMail = CreateObject("CDO.Message")
RegMail.From = "somone@gmail.com"
RegMail.To = email
RegMail.Subject = "ISM Mock Theory Test"
RegMail.TextBody = BodyText
RegMail.Send
Set RegMail = Nothing

View Replies View Related

Sending Mails Using CDO

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.

View Replies View Related

Sending Through Mail

I have already made the form to save itself in an online database. I need to mail it to myself too, what do you recommend me to do?

Some people recommended me ASPEmail, but I didnt understood how to make it works....

View Replies View Related

Sending Email

how can send email using ASP?

View Replies View Related

ASP Email Sending

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.

View Replies View Related

Sending Email Via .asp

Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing

I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition. Now, the above code no longer works. It worked great on NT4

What do I need to do to make it work with my new server?

View Replies View Related

Sending Email In ASP...

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 Im getting this error:

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

View Replies View Related

Sending Mail

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 dont want to use external component.

View Replies View Related

Sending Emails With Asp

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?

View Replies View Related

Sending Email With ASP

I need a way to send an email using a normal HTML form and then taking those values and sending them to myself.

View Replies View Related

Sending Mail With PWS

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 anyone tell me what i could use instead?

View Replies View Related

Sending Email

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.

View Replies View Related

ASP CDO Sending Emails Twice

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:

View Replies View Related

Sending URL Through Querystring

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/

View Replies View Related







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