I have a site that pulls in XML data from an external third party and I need to parse it in my ASP page.
Could someone please suggest examples or online resources where I might learn how to do this? Everything I am Googling is confusing me with DTDs, XSLTs etc.
What I want to do is simply upload a file and read the information in there. I don't want to save the file onto the server or anything difficult.
My problem is I don't know how to recieve the file once the user clicks on the Submit button. So far I have the Enctype as "multipart/form-data" and an input type as "file". That's it.
I'm working on a project where there are just under 1300 course files, these are HTML files - my problem is that I need to do more with the content of these pages - and the thought of writing 1300 asp pages to deal with this doesn't thrill me.
The HTML pages are provided by a training company. They seem to be "structured" to some degree, but I'm not sure how easy its going to be to parse the page. Code:
I need to use asp code in a text file (.txt extension). But when i try to call the text file (with asp code inside) in a browser , it simply displays the asp code i have written on the file. I know that i can set options in IIS administrative panel so that my text file is parsed as asp. But assuming i have no access to the web server, how to do this?
Im trying to parse data from a .mdb file to a com object [.dll] file. how to i get this.? Then the .dll file perfoms the required calculations/conversion on the data parsed and displays the result to an ASP page.
I am trying to create an application feature for an inventory database and I am wondering about the most efficient way to process the updates. Here's the background information: Code:
i am trying to write a script to parse an external xml file, but am having problems... the problem i think has to do with me trying to do Response.Write(xmlDoc.transformNode(xslDoc)) before the xml is fully loaded. The link to the xml file is valid. Code:
I'm trying to create an ASP page which, when it loads runs the ASP code first then prompts the user to download a text file. I know the answer might be obvious to some of you, but I've sone several searches online and I'm not getting anything.
1) Run code in ASP page.
2) Prompt user for download of external txt file after code is finished running.
I would like to know something about placing a password for a database in an external file, something like a global.asa file or a included file. I'm using an access database and ASP. how do I make this file and how do I attach it to my website. I thought this might be useful for extra database security, is this true?
The database is located in a folder that is protected by the hosting provider and you can only download the database using a login name and password and you can change data trough webpages (update, delete and insert).This has all about database security, I want to make my database as secure as possible, I'm already using SSL certificates.
I am trying to clean up my html pages by removing the very simple (copied and pasted) javascript functions and placing them in an external file.
What is the correct syntax to call function f1 in function.js ? Also can I add asp code in function.js and call it from an html page? I have this code in my html page that is not working properly :
<font face="Verdana, Arial, Helvetica" size="2">Today's date is: <font color="#ff0000"><%response.write(date())%>.
I'm retrieving an XML document posted to my page using 3 simple lines Code: set xmldoc = Server.CreateObject("Microsoft.XMLDOM") xmldoc.async=false xmldoc.load(Request) I know there is data being sent but when i run
Code: Response.write xmldoc.parseError.reason It's consistantly telling me No data is available for the requested resource. Does anyone know why this message would appear when the request "should" have some data in it.
Also is there anyway I can view the raw results in "request"?
if it is possible to parse the contents of a folder into a html page. So that the html page would display a form with a list of the filenames found in the folder and a radio button for each.
Microsoft's documentation reports this, " The parse method returns an integer value representing the number of milliseconds between midnight, January 1, 1970 and the date supplied in dateVal. "
Would that not imply that the above value should be ZERO?
I need to parse a string from a single, semi-colon delimited, 60 character field (el_text) in a recordset and display the results in a table on a webpage (ASP). I can retrieve the recordset from the database and display the field data results in rows of a table but have the entire 60 character string in one cell.
I need to break that string apart and put each semi-colon delimited value in it's own cell. Then move to the next record and do the same thing in the next row of the table. and so on. I'm using ASP, VB Script with DMSII Database and OLEDB. how to break this field apart and then arrange the data into an html table on a webpage?
I have a text input on my page and I need to split up the string into an array. I want every letter to be in its own slot inside the array. Anyways, how do I do this?
I need to parse a string from a single, semi-colon delimited, 60 character field (el_text) in a recordset and display the results in a table on a webpage (ASP)
I can retrieve the recordset from the database and display the field data results in rows of a table but have the entire 60 character string in one cell. I need to break that string apart and put each semi-colon delimited value in it's own cell. Then move to the next record and do the same thing in the next row of the table. - and so on
I'm using ASP, VB Script with DMSII Database and OLEDB
Does anyone have some code examples on how to break this field apart and then arrange the data into an html table on a webpage?
have a number of text box rows generated dynamically with the same name. This gets posted to the same page as a comma delimted string. The Problem: If a user enters a comma the string gets disjointed. Need to parse(remove commas)the dynamic text box values generated on client side.
i hav drop down menu wif 6 titles. this is populated using the Table Grade. Now for example, im selecting Senior, which has the ID 4. how do i parse the ID thru when pple select the title? it must be hidden
If anyone has any suggestions on how I could get specific data from a word document into a Database please advise. I need this to work via our website.
Scenario: User uploads a word doc to our server. Then is presented with a button that reads "parse it".
I need to write something in asp that will open up the word doc and extract out specific data then simple insert it into a SQL db.
I have only been doing ASP for 2 days now so I am learning as I go. I am trying to paser through a xml document that is on the clients computer.
I am using the XMLDOM object. The problem is that the path that I supply using <input type="file" name="mFile"> is always looking to the server's hard drive instead of the clients computer. How do I make the XMLDOm object load the xml file from the clients computer. Code:
I was excited to use Microsoft Index Server, built into IIS, to set-up a site-search function, but it doesn't, by default, parse the ASP code of the pages it indexes. This makes it sort of a weak option for a site that uses variables to populate content in a templated site.
For example, I use variables to fill in the meta tags, and every page shows up in the search results as "UNTITLED." The problems go much deeper than that, but that's just an example.
if there's a trick to make it parse the code before it indexes? I mean, it's IIS, right? It should be able to parse ASP code. (You would think.) It seems to know not to index the ASP code, or else the contents of the variables would still be indexed, so it seems like it has the potential to parse the code before indexing.
I've got a slight problem with parsing a file that I open and have it read the server-side scripts. Instead it looks like it's processing it all as a string. I've tried both OpenTextFile and OpenAsTextStream - they both yield the same results. Code:
Receive xml as input stream through asp and parse it. I would be getting a xml file and i need to recive it through asp and parse it thus extracting its childnodes.