"Cannot use Request.Form collection after calling BinaryRead"
I get this message cause I have a form that inputs two types of data: a file to upload and a field value to save in a datasource. The encryption is "multipart/form-data". The file is uploaded successfully, but, how can I invoque the fields of the "request.form" without getting this error?
I am trying to send out an email newsletter using both HTML and plain text? Any good resources for doing this? I can't seem to get it to display the TextBody when Outlook is set to display emails using Plain Text.
I am using:
Dim objMail Set objMail = Server.CreateObject("CDO.Message") objMail.To = varEmail objMail.From = "webmaster@imysite.com ( Webmaster)" objMail.Subject = "My Subject" objMail.BodyPart.ContentMediaType = "multipart/alternative" objMail.TextBody = "No HTML here. I want this text to display if HTML is turned off." objMail.CreateMHTMLBody "http://www.mysite.com/mailer.html" objMail.Send Set objMail = Nothing
When I receive the email in outlook with HTML turned off, it comes up a mess. I was hoping the TextBody would show. Also, the images I am using have full paths (http://www.mysite.com/image.jpg) but they are still showing up as attachments with odd names like ATT21435.jpg.
I have a form that triggers the sending of an e-mail via CDOSYS. I'd like to make this a nice HTML-formatted multipart message, but for some reason the text version is coming through blank.
Originally I thought I had read that CDO has an automatic text converter that will turn the HTML code into a plain TEXT message, but when that didn't work (and I couldn't find anything further about it), I added a custom text line like this:
objMessage.TextBody = "This is the text body." objMessage.HTMLBody = "This is where I put the long HTML code." objMessage.send
That worked in my mail client (Thunderbird), but the messages still go blank in my wife's Hotmail account (actually, if I send it directly to her hotmail account they don't arrive at all; if I send it to her other address that forwards to her hotmail account, they come in, but the body is blank).
Is it possible if i wanna append xml data and upload picture at a same time using the same form?
The problem i'm facing now is, when i add the 'multipart/form-data', i can't append the xml data
I know there's one solution, using 2 FORM but the project i'm doing now is designed to be put them both (file type for upload and textarea for append) together
Besides, i have no idea how to encode or decode the posted data.
Here's what i'm trying to do, send out an email that contains both text and html with the mime encoding that will let the user's client display what they support. This email will be an external file.
How to send the HTML and Text email at the same time?CDONTS only send one type of email at one time and we should know before hand what type of email the client can receive. In my case i want to send both and depending on clients email reader the right one should show up.
I have used ASP email component also but for this component to work properly we should have relaying enabled on our SMTP server.Due to the threats of SPAM i dont want to do this. I am not any demanding here but simply trying to find the better way
i have created a registration page containing a form than sends username password to an asp processing page. If the user exists it sends the user back to the registration page with server.transfer command otherwise it adds the new user to the database as expected.
Anyhow I now want to add an upload feature to the registration page (using pure-asp). The example I used says that the form Enctype property should be set to mulipart/form-data.
Now when I add a new user via the registration form, the processing page for some reason assumes the user is already registered (BUT IS NOT IN DATABASE) and the server.transfer code is executed ? sending the user back to the registration page.
can anyone post or direct me to a code snippet for sending a plaintext/html mutlipart email using CDOSYS? I can do basic code, but this is way beyond me. If a user enters html into a form, is there a way for code to strip that out and leave only plaintext behind?
The idea is that a user would fill in one html field, the form would email it in multipart, with one part using the html the user entered and the plaintext part using the same info but with the html code stripped out.
I have a form which uses the encode type "multipart/form-data". How do you parse and iterate through the form field collection once the binary read method is used?
If I'm using multipart/form-data as the enctype and the action is the same page how do I check if the form has been submitted? Usually I'd use something like this:
Code: if request.form("input_submit") = "Save" then ' Process the form ... end if
I am using VB 6 and ASP to upload files to the web server in one of my web applications. The architecture is something like this...Thin ASP/html front end using multipart/form-data when user selects the file and clicks on upload a COM object is being called to upload file.
This works absolutely fine when dealing with file sizes in b/w 1 to 15mb....Now users are trying to upload huge file sizes such as 80mb/100mb. the web application dies without uploading the file....hence was interested to know if there is any size restriction for this???
The COM object is written using ASP Scripting library, MTS scripting engine, ASPSOFT upload....references.
I am trying to upload a file . In my asp page I have enctype='MULTIPART/FORM-DATA'. for my form. Problem I am having is that I have some hidden variables in the form which do not pass through when that form is submitted. how to pass the values of hidden variables with enctype='MULTIPART/FORM-DATA'.
I have a form (which is multipart/form-data) it has a file field and a select. When i submit this form i can get the file but i can't get the value of the select? any ideas?
im looking to encrypt a string of numbers in ASP using javascript. Ive been looking up encryption using RSA that does this for text strings. Does anyone know if this can be done with a string of integers?
Is there an encryption protocol that asp classic uses that asp.net also uses?The reason is, I need to allow users to automatically be logged on if they are logged onto the old asp site in the .net one.They are on the classic asp site, they click a link, first, some info is gathered then it is encrypted and placed in a query string.The .Net site gets the query string, decrypts it and takes it from there.
I'm trying to find an encryption algorythme that is emplimented in asp and js so that I can encryp a password client side with the js and decrypt server side with the asp.
what I'm looking to do is encrypt a small portion of html code that is generated by my ASP page. I haven't had much luck finding any info to see if it can even be done though.
Does anyone know a way to encrypt html so its not as easily viewed by the source page code?
I am facing one problem while uploading images in ASP. I am using ASPUpload to upload the file. I can upload the files also. for that I am giving the Encription type as multipart/form-data. THat time I am not able to get the other informations in that form like some hidden fields inthat form.
Is it possible to get the information when we were uploading the images. I am using post method for uploading.
My form accepts user name and password. I want to encrypt the password when I send it to the server. I think I can use windows advapi32.dll functions to encrypt and decrypt the data. Does anybody know if I can use this dll directly in my asp? Do I have to write customized dll which uses advapi32.dll and then use the customized dll in the asp?
I would like to know what is the best to encrypt/decrypt info using ASP. I would like to encrypt some darta when recording it in an Access db and decrypt it when retrieving the data in question.
I guess that there are no built-in function so I was wondering if you would have a script that you would recommend. Or should I use a third party? It doesn't have to be very complex.
I am planning to provide the Pause/Resume while uploading files.Our site is using both java applet and activex to do this.The list of selected files will be stored in an encrypted file using SHA256(I have taken the code from:
[LINK]...
The user can Pause file uploading and can resume file uploading even without login to our site at any time (even after days/weeks).Since the list of files are stored on an encrypted file our site's client service program will upload the rest of files.I invite all to discuss about the security issues arise out of this solution and how secure is the above program using SHA256?
I have developed a real estate software and I want to encypt few lines of ASP code so that it becomes difficult for a user to edit the code and change copyrights. Example:
I am currently working on a project where I need to encrypt the query string parameters to hide the details from the user. However, everywhere this parameters are used, I must encrypt on the calling page, and then decrypt on the page being called.
if there is a way to do this transparently so that I don't have to do these steps for all pages? I know this can be done using an HTTP module in .NET but is there a way to do this in classic ASP ?
I need to send an email via an asp page that will encrypt the email so that it can be decrypted when it arrives in the inbox of the person it was sent to.
I know that PGP can be used but i cannot find anything of how to do it online. Has anyone got any ideas where i could find some info about this or even an alternative way of doing things.
i cant generate paypal buttons with software available as mine need to be dynamic. however i have read paypal manuals 3 times now, and all it tells me is i have to have openSSL.
now i dont, least my host doesent anyway, i have an SSL certificate, but it is not open. does anyone have any experience of trying to encrypt there dynamic buttons for paypal and working with ASP ?
How can I encrypt strings using an asymmetric key?I want to encrypt short strings (credit card numbers, etc.) and save the encrypted strings into a database. When accessing the data (i.e. the web admin), he will provide a password (the decryption key).
There are DLL components (http://www.aspencrypt.com), but I can't register a DLL on the machine (hosted server).