SIMPLE Upload Method

I'm currently using CDO to email the values of a form and add the values into a database table. My goal is to attach a MS Word document (.doc) to the email before it's sent without adding it to the database (not required). I've tried molding other "simple ASP upload" methods, but I can't seem to make them work without success. Maybe you guru's can assist me.
1. My field ID for the file to upload is "datafile".
2. I want to save the file to a relative directory on the site without specifying the full path. The path I wish to use is "/DB" for the DB folder.
3. After storing the file in the DB folder with the name of "Resume.doc", I want to use AttachFile to insert it into the email.

View Replies


ADVERTISEMENT

Simple Upload

i'm trying to create just a simple upload - fill in a form with the article
title, and description - and select a file - i need to upload that file to
the webserver, and then rename that file to the <% =Sartid %>.pdf

any ideas where to get something this simple from? never done anything like
this before - i'm guessing the FSO will be used?

View Replies View Related

ASP Simple Upload

does anyone know of a good place to find code samples for ASP Simple Upload. I can't seem to get to the original site.

What I need to do is upload the file and save the path and some other info into to a database.

View Replies View Related

Simple Upload

I've been developing a site for a few weeks, now i've got to a part where i need to write the facility for the client to upload product thumbnails.

Now, i read a lot of you banging on about components being the be all and end all which is cool but i feel components can be a lil' over kill for simply uploading a .jpg. I mean they are usually general purpose meaning your gonna have a lot of features that you aren't going to use!

But thats the opinions outta the way, I would therefore *prefer* to pure code this thing cos that will also eliminate the need to mess around with the host (im sure they wont like dll's)

So to my point, does anyone know any decent guides on writing a 'post' method upload script?

View Replies View Related

Simple Excel Upload ASP.NET

A user submits a .xls file via upload, this file can be opened by anyone but not saved.

Must be readable by non- MS office users.

I don't need any databinding or linking, I just need the .xls viewable on a ASP.NET page.

Also, I need to archive the submissions.

View Replies View Related

Want Simple Upload Code

could you give me a simple upload image code, Im sick and tired of searching about one, and all of then so complex and how can I request the data from database as what it inter(with html tages).

View Replies View Related

Simple ASP File Upload Code

Can anyone tell me where I can find some 'simple ASP File Upload code'? I've googled 'File Upload' but they all seem to be very involved with a lot of files. I'm still considered a novice when it comes to ASP.

View Replies View Related

Simple Encryption (simple)

A system I use uses advanced encryption for passwords. It was taken from some sample script and adapted some where. However this was I think intended to be for passwords. So nothing too long.

However the time has come where I need to create a function to encrypt a large amount of text. It has to encrpt a large amount of text but nothing too advanced is needed to be honest. Just so its unreadable because its written to a text file on drive. It has to be a function though then capable of decrypting the encrypted text.

Any ideas ? Again Dont have to be nothing too flash. I mean I had a go at just changing letters to different letters but the function got huge with all the replaces.

View Replies View Related

Upload Excel With Macros Using HTML File Upload

We face problems uploading excel (with macros) documents using HTML
File Upload.

The file contents are corrupted while viewing the same. However, we
are able to upload excel (w/o. macros) documents successfully. Is
there anything we have to take care of, while handling uploads of
excel documents with macros?

View Replies View Related

ASP Upload Error - Persits.Upload.1 (0x800A001C)

I keep getting the following error message when attempting to run the below script.

Persits.Upload.1 (0x800A001)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
line 42.

line 42 is "File.ToDatabase Connect, SQL"

Code:

View Replies View Related

Persits Upload ( ASP Upload ) AND Database Integration

I need some help with aspupload and a database. I have used the same script before and it worked fine, but now it wont upload. Code:

View Replies View Related

Pure ASP Upload - Upload To 2 Directories?

I have been using pure asp upload for uploading pictures and files fo rome time now.
I have a question about it thou - Is there any chance that the pure asp upload can upload a file to a directory and then copy it to a backup directory?

If anyone ever come accross this issue please let me know how u resolve it.

View Replies View Related

ASP Method

I have downloaded the DiscIDCalc program from CDDB. I've used it a lot because I've written my own application for my CD collections (keeping track of the track information of each CD, track duration etc). I've already got all my CDs into the application, I'm now just going through each of the disc again just to add in the DiscID information. I do it by running the DiscIDCalc program, generating the DiscID, and then then copying and pasting this DiscID into my application and then save it.
if anyone has successfully generated the DiscID within an asp page?
Now I have to have my browser up and this DiscIDCalc program up. Just want to know if there's a way to incorporate the two together (even if it means I'm not using the DiscIDCalc anymore.). This DiscIDCalc has a documentation for its DiscIDCalcDLL.dll but it's not something that I can CreateObject with, so I'm quite clueless... I don't want to use VB to write APIs for that

View Replies View Related

Using Get Method

I use query string to search for records by using GET method. This method will generate querystring automatically by using the form name. Using search field together with drop down is fine but the problem is when i didn't enter any keyword or left the search field blank it won't display any result.

Unless I put "%" in the search field. How do I make the querystring change to "%" whenever the field is blank so that all records will be displayed.

View Replies View Related

UPDATE Method In ASP,SQL

i am trying top update a field in my sql database but it wont let me??? does anyone know if my syntax is correct?? I have a field called userId in the database and want to replace it with my form request. Code:

View Replies View Related

Method Not Allowed

Method Not Allowed
The requested method POST is not allowed for the URL /Database/processForm.asp.

Apache/1.3.33 Server at antonyx.freestarthost.com Port 80

i just got this error, however, i have managed to post data into my database on this server b4, why is this error comin up now, could there be a prob with my asp file??

View Replies View Related

GetString Method

When using ActiveX Combo Boxes, can you use the GetString method to populate the control? I currently am using AddItem, however, it is taking a long time to process. I know that GetString works well to improve the performance. Here is my code while using AddItem:

while not rsClient.EOF
Response.Write chr(9) & "MenuForm.lstClient.additem " & chr(34) & replace(rsClient.Fields("Client Name").value,chr(34),"'") & " [" & trim(rsClient.Fields("Client Number").Value) & "]" & chr(34) & chr(13)
rsClient.MoveNext

View Replies View Related

POST Method

Now this is a weird one. I'm having a problem with a system in development. When I post data from a form in IE 5.01 it works fine, but in IE 5.5 it refuses to post the data to the server and in IE 6 it's scatty -- works sometimes but not others. Anyone seen this before?
Edit:
By the way -- this is normal VBS/ASP running on IIS 5 on an NT server

View Replies View Related

Redirect Method

can values of variables be transfered through response.redirect onto the next page

View Replies View Related

Post Method

I have a form that ignores my form validation code. My code works if I use the post method of <%=Request.ServerVariables("SCRIPT_NAME")%>.

But, If I post the form to another .asp page, which I prefer, the code doesn't work. Do anyone have any suggestions? Here's my code.

I have a form that ignores my form validation code. My code works if I use the post method of <%=Request.ServerVariables("SCRIPT_NAME")%>. But, If I post the form to another .asp page, which I prefer, the code doesn't work. Do anyone have any suggestions? Code:

View Replies View Related

ASP HTTP GET Method

I have a service provider that's sends sms messages from clients mobile
phones to my asp page, problem is I don't know how to show the data and they
are not being helpful.
The process is simple as outlined below (instructions from service provider

Example: If you provide this: http://www.yourdomain.com/sms/sms.asp then we
will do a post via a standard HTTP GET as follow:

http://www.yourdomain.com/sms/sms.a...ISO-8859-1&udh=
How do I receive the url with the parameters in the address bar?

View Replies View Related

Email Method

I would like to know which method is best in ASP when using/coding for email via a form.

View Replies View Related

Best Method To Hide

What's the best method to hide, or not show a certain record when doing a pull from a database, as in I am pulling a list with a dozen category's and I don't what to show one of them.

View Replies View Related

ASP POST Method Bug

I have a demo.asp page, that can't pass hidden value "mr progrramer" to
itself using POST method. Only "mr" is passed.

I created a second asp file demo1.asp and passed "mr programmer" and whole
string (include space b/w mr and programmer was passed successfully).

The code for demo.asp is:

<%
name = request.Form("name")
response.Write "hello " & request.Form("name")

' if name is empty then store some string with space in it
' problem is the word before space 'mr' is passed, but 'programer' is not
passed
if len(name)=0 then
name = "mr programmer"
end if
%>

Code:

View Replies View Related

POST Method

I have a .asp page that uses the post method and it works fine on my computer using iis. But when i put it on the web server (it has windows NT4) it wont work.

I've read that you have to do something to allow the post method on the server.

i know nothing about windows NT4 but can get access to the server. can someone please let me know what i have to do to get this to work?

Just to let you know the post method is for ssending a login and pass to another page that search a database for the record. If there is another way to do this that does not show the variables in the url please let me know. i am also willing to make it so that everything is on the same page so i dont have to pass anything.

View Replies View Related

Using The Find Method

Based on what the user selects in a combo box I need to find the value from another column in the same record. This is what I am using:

rsPrice.movefirst
rsPrice.Find "Component='Desktop'"
If (rstPrice.BOF = True) or (rstPrice.EOF = True) Then
response.write("The Price for the Component Not Found")

else
curPrice =rsPrice("Score")
End If

I keep getting an error messages:

Microsoft OLE DB Provider for SQL Server (0x80040E29) Rowset does not support scrolling backward.

View Replies View Related

Renaming Method

I'm looking for a renaming method for folder objects.I have an ASP (JScript) application that I'm creating that acts as a document library. Users can upload files, create folders, etc.

Most places I go to basically have: copy, delete, move, create textfile as the only methods for the folder object - NOTHING about renaming.

View Replies View Related

ASP Update Method

The Folowing code is not working anymore.(500 error)

Set objRS = strSQL1.Execute
strSQL1 = "SELECT * FROM BannerRotor where BannerID=" & cstr(BannerID)
objRS.Open strSQL1, objConn , 2 , 3 , adCmdText
If not (objRS.BOF and objRS.EOF) Then
[ objRS.Fields("Exposures").Value =objRS.Fields("Exposures").Value + 1
objRS.update
End If
objRS.Close

The .execute Method works fine

strSQL1 = "UPDATE BannerRotor SET Exposures=Exposures+1 WHERE BannerID=" & cstr(BannerID)
objConn.Execute strSQL1

W2003 + IIS6.0

View Replies View Related

Search Method

i have a search page script which consists of a text field and a pulldown menu. the search function using search text works but not the pulldown menu. do I have to set separate recordset for each of the search functions, one for the search using text field and another using pulldown menu?

View Replies View Related

Execute Method.

can i gain the two result. in an asp page which using a stored procedure with execute method.

i want to execute the query and return the count value the query at the same time. is it possible and how?must i use ado? it is not possible to make it with execute method in asp.

View Replies View Related

MapPath Method

I am coping a file from server to local on my computer using:

fso.CopyFile Server.MapPath("downloadworkfile.htm"), Server.MapPath("p:workingworkfile.htm"), true
I am getting MapPath method must be a virtual path. How do I reference a virtual path?

View Replies View Related

Post Method

Is there a limit to how many variables you can pass on using post method?

View Replies View Related

GetRows Method

When querying a database, I know I can fix the no. of returned rows/results to 20 (for example) using the GetString method:

myVar = objRs.GetString(, 20, , ,)

What syntax do I need to use to do the same with the GetRows method:

myVar = objRs.GetRows ?

View Replies View Related







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