I have a basic classified as form where people can enter their name, title, message, and include an attachment. I have it working so that it will save the name, title, and message into my database. However, I don't know the code for the attachment.
What I'd like to have happen is this:
When they click save, the path name that was entered is saved as the Internal_Name and the actual attachment itself is placed into a file called ClassFiles. They are connected through the use of a class_ID number.
I am using IIS as a remote configuration tool to modify an XML config file on the server. So I pull my XML config file through XSLT to give me an HTML file with forms on. Something like this: Code:
If the user doesn't attach a file I get an error that path is not found. how can I check if a file is attached or not so that the code can just skip the upload function?
i want to create a form. user can select a file on his computer and then submit it. After this i received a message from user and also a file attachment by the user. But i have no idea more after cdonts not proper working.
http://www.w3schools.com/ado/met_rs_save.asp ....it describes how to save a recordset to file with the following...
You can save a Recordset in XML format:
<% set xmlDoc=CreateObject("Microsoft.XMLDOM") set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/webdata/northwind.mdb"
set rs = Server.CreateObject("ADODB.recordset") rs.Open "Customers", conn 'Save the Recordset into a DOM tree rs.Save xmldoc, 1 %>
What I don't get is where does one stipulate a filename? I put the above code in my page and it appeared to load and execute without error. But no file.
What I´m trying to do is, after the page is printed in users IE, it saves the HTML page in the server. Doing something like this, it´s just too much ugly for my code:
to save asp pages to MS Word, saves the text on the pages OK, but, pictures, icons etc are just saved as a link to the original picture file . If the picture/image is not on the current PC opening the WORD file, then none is shown..
I was wondering if I could save the asp pages WITH images/pictures & icons using MS WORD on the server and then the users downloading the .doc file from the server to their PC, would this embed the pictures etc in the .doc file, so it could be shown on any PC. (which has WORD or a WORD Viewer installed).
If this is possible could someone point me in the direction as to how to get started opening WORD on the server and saving the .doc file on the server.
When I try to save any ASP page, I get the message that "The page will not save correctly". Even though I go ahead and when I go offline the space of images is blank.
I have this website also where I am using ASP pages and my users are facing the same problem. HTML page is created but images are not saved.
What changes are required in ASP code so that images are also saved.
I am trying to create an XML file from a recordset. I know that there are conversion methods out there, but for what I'm doing, everything that I have found doesn't seem to work correctly.What I decided to do was to create hidden fields from a recordset and pass those variables into a page that has XML template tags already created. I am simply passing the variables into existing tags. I now need to save that page as a Text file or and XML file.
It shouldn't matter what kind of file it is as long as I can save the XML tree structure that is being shown on the page. Keep in mind that my users want simplicity, so they don't want to have to cut and paste what is on the screen into notepad or something like that. They want to be able to push one button after the recordset is presented and have all of the tags filled in with the variables and then have a "Save As" dialog box pop up guiding them to save the contents of the page. Is this even possible?
I wonder if you can help me. I want the functionality to Automatically get attachment from email and upload it to server for viewing. So when someone sends in an email to a specificied address, it get the file from the email and uploads it somewhere. How can this be done?I would think that you would have an automated email address. It would proabably be running on a windows server.
I have created on form where i have field like Job title, Company name, Job Discription and Apply button. Also i have one hidden input for email address. When any one click on Apply button there one form will open for mail his resume. In that form i have Name, Mail address of applier, Cover letter(textarea), and select box and Attachment textbox and Send button. At backend this programe mail me his information through mail with his keyed info with attachment of his CV. In CC he takes hiden value of email which i maintion in hidden text.
I recieved an FTP address and found no files in html, but in asp. The source code of the site looks like normal html and I updated it locally but don't know how to save it to .asp and replace the file on the server. I can't open the .asp file. What do I need to do this?
i have some problem in ASP. actually i am developing a web site using ASP,Sql server. i want to give the opportunity to the users to download a file from the webpage. i created power point slide show. i want to give the link to download that slide show.
How do I load and save a UTF-8 document in XML in ASP/VBS?
Well, the loading* is not the problem actually -- the file is in UTF-8, and understood correctly -- but once saved, the UTF-8 is replaced by what seems to be iso-8859-1 (which Flash doesn't understand, but that's another problem).
i am encountering some problems in converting some data into CSV format..i have alreadi retrieve the data however i do not knoe of ani methods of converting to CSV...is there ani method to save the directory to .csv
I'm using ASP to generate an e-mail with attached files and send them out to clients. Typically, when we send out e-mail through our mail server, there is a disclaimer that is auto appended to the end of our e-mails. I don't know how this is set up (not a network guy and a relatively new employee). For some reason, this disclaimer is attached as a text file to any e-mails that I send programmatically. Any idea what's causing this or how to solve this problem?
I have a web page coded in ASP VBScript which sends a html email using the Jmail.SMTPMail object.
I am trying to attach a .csv file to the mail but when i get the mail through it won't display. It just shows this in the mail body...
This is a multipart message in MIME format. ----NEXT_BM_46A46859F09247848CB1A7C3EBE06AC2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: Quoted-Printable
I am sending email using CDO. I want to send attachment through email.For that I have to send my file to webserver first then have to write path of file in CDO code.what is the best method developer's using for the same?Would you please send some component so that from local m/c I can upload desire file to webserver and consequently can attach that file into email.
I'm currently doing some work with ASP and XML DOM.
Is there any way when saving XML to get ASP to save it in a formatted way? Similar to PHP's formatOutput setting? At the moment my xml is being appended on line e.g
<test>1</test><test>2</test> Is there a setting to get ASP to save XML like:
<test>1</test> <test>2</test>
The XML document I'm working on is fairly large and its proving very difficult to read through the xml at the moment.
--------------------------- <IMG SRC="calendar.gif" Align="center" Border="0" onMousedown="alert('Please! Do not download this image. Thanks!')"> -----------------------------
Now what this thing does is that it displays a dialog saying "Plz DO ..." ... What should i do if i want that NOTHING should happen when a User right clicks on IMAGE ..absolutely nothing should happen ...
Is It POSSIBLE?
Another thing ... When the MOUSE moves over the image a FLOATING TOOLBOX kind of thing appears which has buttons likes SAVE,PRINT,EMAIL and things like that ... so what should i do so that NOTHING happens when the mouse moves over the IMAGE ...
Does anyone know how to create an attachment using a stream in classic ASP.I can see that it can be done in ASP.Net as per the article below: Initializes a new instance of the Attachment class with the specified stream and name. http://msdn2.microsoft.com/en-us/library/6sdktyws.aspx.
When a user posts a HTML Form in an ASP page, the values entered by the user in the Form are mailed to the website owner. Users can also attach a file before posting the Form.
To send the e-mail, I am using CDO.MESSAGE. When I tested the app in my local intranet IIS5.1 server, the e-mail part worked fine & even the attachment was sent along with the mail but after deploying the site at godaddy.com, when I try to send a file from my local hard disk as an attachment, I get the following error:
It's pretty obvious what's causing the error - the ASP file resides onthe server whereas the file to be attached exists in the users local hard drive but the question is how do I resolve this error?
i can't seem to think of a way around, this maybe more of a security question but htought i'd give this forum a shot first.
I have server A and server B
IIS on A but not on B
I have a webapplication that needs to save a file on server B. I can't set up a virtual directory with B since it doens't have iis i believe. If i were to do shortcuts or mapped drives those i think would use the credentials of the internet user i believe which won't have access to the directory, at least that's why i think it won't access them.
Can any one think of a clever workaround this? Can i just set the permissions to allow internet users to write to a folder on server B and it'll save that way?
--------------------------- <IMG SRC="calendar.gif" Align="center" Border="0" onMousedown="alert('Please! Do not download this image. Thanks!')"> -----------------------------
Now what this thing does is that it displays a dialog saying "Plz DO ..." ... What should i do if i want that NOTHING should happen when a User right clicks on IMAGE ..absolutely nothing should happen ...
Is It POSSIBLE ?????
Another thing ... When the MOUSE moves over the image a FLOATING TOOLBOX kind of thing appears which has buttons likes SAVE,PRINT,EMAIL and things like that ... so what should i do so that NOTHING happens when the mouse moves over the IMAGE ...
Is it possible to remove just the session.sessionID, I have other session variables that I would like to keep?I use this for saving cart information but it needs to be different each time.
I am sending email using CDO. I want to send attachment through email.For that I have to send my file to webserver first then have to write path of file in CDO code.what is the best method developer's using for the same?Would you please send some component so that from local m/c I can upload desire file to webserver and consequently can attach that file into email.
I have an asp application that should allow the user to enter Unicode characters.
The characters appear correctly in the browser. When saved in sql 2000 thought they are converted to question marks etc.
When I enter the characters directly in SQL (using enterprise manager), they appear correctly in sql as well as in the browser when the asp page retrieves them.
As soon as I hit save they get overwritten in sql incorrectly.
Does anyone know of a product that would allow me to create a PDF from an ASP page on the fly, but instead of displaying the PDF to the user, simply write the PDF to a file?
(My goal is to subsequently pick up the PDF and attach it to an e-mail to the user.)
I�ve been unable to find a product that can achieve this.