Using Asp To Generate Xml File On Server

Is it possible in a global.asa file (or some other way) to have an xml file generated by an asp script and saved to the server some how?

<%
Dim xmlDoc, rootEl, child1, child2, p'Create an XML document
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")'Create a root element and append it to the document
Set rootEl = xmlDoc.createElement("root")
xmlDoc.appendChild rootEl'Create and append child elements
Set child1 = xmlDoc.createElement("child1")
Set child2 = xmlDoc.createElement("child2")
rootEl.appendChild child1
rootEl.appendChild child2'Add an XML processing instruction
'and insert it before the root element
Set p=xmlDoc.createProcessingInstruction("xml","version='1.0'")
xmlDoc.insertBefore p,xmlDoc.childNodes(0)'Save the XML file to the c directory
xmlDoc.Save "c: est.xml"
%>

THis seems to be what i am after but when I try to modify the xmlDoc.Save line to either "/images/listings/test.xml" or imageslistings est.xml" and it comes back saying it can't find the path. If I just leave "text.xml" it comes back saying permission denied. If I can solve this path issue so as to be able to save the file to a directory I think I will have it solved.

View Replies


ADVERTISEMENT

Generate PDF Reporting File With ASP From SQL Server Datas

I'm looking fo a solution to generate automaticaly a PDF file.

My aim is to use a template define by a user and to insert dynamicly
datas form SQL server in this document.

Can you tell me if it exist PDF template like .dot for word ?
If such file exist is it possible to generate list of information like
aacount report with datas coming for Database like Sql server.

View Replies View Related

Generate RTF File From ASP

currently, i export data from ASP to Excel. but i want to change it to RTF. i have looked at microsoft website and tried whay i have studied but failed to make it. at microsoft website, the table is created using rtf script but in my case, i just want to create it using html script.

and then, when user click PRINT button, i want my system shows the detail contents of rtf file and then open the Print window later. so user does not need to click File->Print and so on. is there any example script i can study?

View Replies View Related

Generate File

how to generate a text file with data from the db in asp and save that file in clients system.

View Replies View Related

Generate Xml Without Need To Persist It In A File?

i get data with ado i need to get a xml string from the recordset how can i get it without having to persist the recordset in a (xml) text file is there a simple way ?

View Replies View Related

Generate Unique File Name

I have an application form that when filled out is being written to a singular HTML file. I want to convert it to generate a unique file name each time a user fills it out.

Secondarily, I want to be able to attach the unique file to the email that is sent to us when it is submitted.

Here are the current snippets of code:

set ObjFS = server.createobject("Scripting.FileSystemObject")
set objTheFile = objFS.OpenTextFile("e:credapp2.html",2,-1)
objTheFile.WriteLine(FileToWrite)
objTheFile.Close

and...

objMail2.AttachFile "e:credapp2.html"

View Replies View Related

Generate Excel File Using ASP

With response.contenttype = "application/vnd.ms-excel", I can easily export my data to Excel which is embeded and shown within a browser. If I'm going to save the Excel file through ASP programming, which method can I use? I need to save the data to Excel file with dynamic name (the file name should contain key values and appended with system datetime).

View Replies View Related

Generate Html File

how to create (generate) .html file by using asp. I am not sure if this possibility even exists... if not, is there any other way I could generate .html files? The thing is that I have to retrieve info from database and the generate .html file.

I know I could have it as .asp, but this woudl my index page and I would like to use it for search engine, which are not very happy with other extensions than .html.

View Replies View Related

How To Generate .html File With Asp?

how to create (generate) .html file by using asp. I am not sure if this possibility even exists... if not, is there any other way to do it?

View Replies View Related

Generate Unicode Text File

Is it possible to get information from a database and generate it to
unicode text files using ASP?
Is there any product/COM out there that can do this? If not, is there
any other solutions? It doesn't have to be ASP, but it would be nice.

View Replies View Related

Generate An Ms Word File For An Asp Output?

generate an ms word file for an asp output?

<%
x=date
response.write(x)
%>

- is it possible for the date (code above) to be displayed on ms word?

View Replies View Related

Dynamically Generate Global.ASA File?

On each site there is a global.asa file that ties into an Access database. The fields from the Access database instantiate the values of session variables used in the site. I am trying to do away with the need for a database and was wondering if when I set up a site I also set the .asa file for that site.

Then if a shop wants to change something like an address, phone, number, directions, etc., they would go a toolbox area of the site and there would be a form whose field values would be populated by the session variables from the global.asa file.

When the form was submitted I was thinking I could somehow use asp to write a new global.asa file and store it in the server. Is this feasible? Also, what would this mean insofar as permissions on the root directory of the site? I'd imagine they'd have to have write permissions no? Code:

View Replies View Related

Copy Or Upload File From Server To Ftp Server

I want to copy or upload a file from server say some lanserver to ftp server through ftp. Is it possible.

View Replies View Related

Upload File To Server And Get File Properties

I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.

I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.

What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).

I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.

View Replies View Related

File Held On Server's File System

i am currently working on a project in which part of the requirements are to store files on the Server filesystem and make these files available for download by users. Is there a simple way to provide the user with a link which starts downloading the file when it is clicked?

View Replies View Related

To Save A File To A Server And Retreive The File

I have an asp page, which displays graphical images.I am using Flipper graph in my application.

There is a link in the asp page "Click to view Image file",On clicking on this link,The graphical image need to be stored(Preferably in the server machine) and has to be opened in a new browser window.

To explain in detail. On clicking of that link"Click to view Image file" a function is called which does the following

1)Save the image file(.gif file) on the server machine
Graph.ImagetoGif("Location to be saved",100,200);
2) Opens the image on a new browser window.

window.open('from location from where the image is to be retreived',100,some more properties) So i need the image file to be saved in the server and retreived from the server.

View Replies View Related

Post File From Server To Another Server

I accept a few user inputs and a file from the user, post it to my ASP page.
I'm able to receive the data as well as the file properly in Receiver.asp.
In my receiver.asp, I need to process the user inputs and subsequently POST
this data and the file again to a different server. I would like to use
ServerXMLHttp. Now, how do I simulate Form creation in receiver.asp.

I use the following code to post to the second server
MyXmlHttp.open "post", myTargetURL,false
MyXmlHttp.setRequestHeader "Content-Type", "multipart/form-data"

Now here's where I get stuck.

1) How do I construct the form data? How can I put together the data i
received (which is text) as well as the received file (which is Binary) in
the same Send statement for the Post? -- I assume that if HTML forms do it in
some format, I should be able to simulate the same through ASP, but how???

2) The received file will not be stored anywhere in my server. It has to
be forwarded in memory.

Should it look somewhat like the following?

MyXmlHttp.send ("userId=" & someUserId & "&privateLabelID=" & someLabel &
"&File=" & receivedBinaryFileInMemory)

View Replies View Related

Get File From FTP Server

<%
Response.Buffer = True
Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
'objHTTP.open "GET","ftp://xxx.xxx.xx.xxx/xxx.mp3", false, "username",
"password"
objHTTP.open "GET","ftp://username:password@xxx.xxx.xx.xxx/xxx.mp3",
false
objHTTP.send

Response.ContentType = "application/octet-stream"
Response.BinaryWrite ObjHTTP.responseBody
%>

why the above code does not let me access the file on the FTP server? Neither method to authentcate seems to work. Also tried "OPEN" but I don't think that worked either.

View Replies View Related

File Server With Img Tag

I have images on a file server with the name convention of lastname, firstinitial, and last 4 of SSN. I already have the select statement to concatenate all three from my sql server database. Now how do I get asp to query the statement in a IMG SRC tag calling the images from my file server?

here's my sql statement:
Select 'srv-file-b/j:data/cert_pics' + rtrim(lastname) + left(ftrim(firstinitial),1) + Right(SSN, 4) +'.jpg'
from customerInfo
where customerID = 1116

My problem is that when i execute the page i get an X where the image should be.

View Replies View Related

Upload A File To The Server?

I have just this morning built a very basic login area for myself.

Now I wish to have a script that will move a file on to the server.

I have tried looking up Google but it seems a bit quiet on tutorials with this.

Can anyone point me in the right direction?

I basically want to be able to upload a file onto the server with an ASP script.

View Replies View Related

Reading File From Server

Consider the following code snippet:

<%
Dim objFSO,objOpenFile,strPath

strPath=Server.MapPath("ADList1.txt")
Set objFSO=Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT")
Set objOpenFile=objFSO.OpenTextFile(strPath,1)
Do While Not objOpenFile.AtEndOfStream
Response.Write(objOpenFile.ReadLine() & "<br>")
Loop
objOpenFile.Close
Set objOpenFile=Nothing
Set objFSO=Nothing
%>

When I try to execute the above code, the code never gets executed. Neither
am I shown a script timeout error. After a lot of investigations, I
concluded that the code is not getting executed due to the presence of

Set objOpenFile=objFSO.OpenTextFile(strPath,1)

If I comment line nos. 3 to 8, then the code gets executed but as expected
without any output. Is this happening because of some permission which has
not been given to IIS 5.0? If so, what is it? I am working on Windows 2000
Professional.

View Replies View Related

File Uploading To Server

Can you help me find an asp code that will upload a file from my PC to web server?

View Replies View Related

Reading File From A Server

I understand i can not use Scripting.FileSystemObject to read a file that resident on another server and i need to use something else.

View Replies View Related

Writing To A File On A Server

I would like to create a file on the hosting server (if it doesn't exist yet), then I would like to write some error information into it. Finnaly I would like to retreive that information later.

View Replies View Related

I Have Some File Want To Make A Web Server

i creat one sql server and want another computer on my lan run my web server (i mean the computer on lan can insert data and store to my sql server)but i don't know to do that .i used windows 2003 and IIS6.

View Replies View Related

Retrieve File From Server

I am trying to fetch a file loacted on the server under a directory '/resources'.

are there any VB specific protocols for doing this?

View Replies View Related

Uploading Csv File To SQL Server

I need to know the codes to upload my csv file (*csv) generated from Excel to SQL Server. I aso need to have the codes for uploading my CSV file to my access database..

View Replies View Related

File On Apache Web Server

on win xp i am using apache web server and i want to run my asp files using apache web server....

View Replies View Related

Uploading CSV File To SQL Server

i need to know the codes to upload my csv file (*csv) generated from Excel to SQL Server. I aso need to have the codes for uploading my CSV file to my access database.

View Replies View Related

Upload A File To My Server

I would like a somewhat user-friendly way to have the browser-side user select a file to upload and then have that file be uploaded to my web server. Speed is an issue.

View Replies View Related

Lauch .Bat File On Server

I want to be able to launch a .bat file on my server.So far have created a virtual directory on my server called Scripts and allowed scripts and exectuables to be lauched in it. I have also given IWAM_COMPUTERNAME AND IUSR_COMPUTERNAME full permissions on the folder.From serving the net i have put together this little bit of code:

<%
Dim strCommand, objWshShell
strCommand = "N:HTTPVirtual Directoriesscript est.bat"
Set objWshShell = Server.CreateObject("WScript.Shell")
Call objWshShell.Run(strCommand, 1, TRUE)
Set objWshShell = Nothing
%>

However i keep getting a error on line 5 "Call objWshShell.Run(strCommand, 1, TRUE)" but i cant see what the problem is?

View Replies View Related

Deleting File From Server

I can easily upload images, add to db etc etc... but is there a way of actually dynamically removing image files from the server? At the moment I have clients uploading banner adverts to the server, but if they decide to delete the image, it removes the record from the database.

I need to go one step further and remove these 'old files' from the server instead of simply taking up space etc. anyone have any great applications or scripts I can use with a delete statement?

View Replies View Related

Detecting A File From Another Server

What i wanna be able to do is make something where my server say, www.billy.com can do something like this:

if yahoo.com/images/banner.jpg = true

then response.write "That image was detected"

else

response."write" "That image was not detected"

View Replies View Related







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