I've had an ASP project dumped on me written in VBScript. I'm actually a
C#/ASP.NET developer and am struggling trying to find a way to sort the
result of a XPath query executed using SelectNodes? Code:
I have an Excel file with one column of data. This excel file, I have saved it as an XML file. Now using the XMLDOM, I am trying to display the contents into a Textarea.
I'm parsing an XML document using the XMLDOM object in ASP. I am running into a problem with a section formatted like this:
<MasterElement> TitleOfElement <Abbreviation> TOE </Abbreviation> </MasterElement>
If I use node.text, I get TitleOfElement TOE. I need to seperate the two but cannot find any reference that addresses this. Of course I can manually parse using standard functions like InStr, but it seems like there should be a more proper way to extract the data. Anyone run into this?
I want to load some HTML which is in a ASP variable into an XMLDOM object but am having no success. All the examples I see point to loading documents from the filesystem using the .Load or .LoadXML methods.
I'm in the process of 'trying' to write a very small CMS which will allow me update an existing XML script I have.
Unfortunately I just cannot get the script to work, my script falls over with an objRoot error when I try to set the objField using selectsinglenode. XML looks like this:
xslProc.input = xmlDoc ' The xml to transform xslProc.transform()
I now want to use the resulting xml output (the xsl transforms to a different grammer) to do some stuff before the whole lot (xml and stuff) is passed back to the page that called it (AJAX). How do i feed the transformed xml into xmldom, domdocument or what every is required for me to navaigate using xpath and so my stuff?
I have the following code which I try to load an xml file, but in browser, I only get text value for each node, not whole xml string. I expect to see something like:
<name firstName="betty" lastName="Smith">I am at home</name> But I only see text "I am at home" did I do something wrong? Set xmlDom=CreateObject("Microsoft.XMLDOM")
I've got an application setup that uses freightquote.com API to receive XML responses containing shipping information. A basic response example is as follows: Code:
I've had an ASP project dumped on me written in VBScript. I'm actually a C#/ASP.NET developer and am struggling trying to find a way to sort the result of a XPath query executed using SelectNodes?
I'd rather not rely on external XSL files if possible.
I have this database that contains four columns (ID, Name, Qty1, Qty2). I can display the data on an ASP just fine but what I want is to display the data in Ascending order of the total number between Qty1 and Qty2 of each record (Qty1 + Qty2 = QtyTotal). Obviously the total number is not stored somewhere in the database. So how can I accomplish this?
I try to find a script in ASP that combines sorting and paging. I already found various scripts that do one or the other but none does it both. I know I should combine them, but it is very difficult at my level of asp knowledge.
I created a script which suppose to sort on 2 fields. Everything works fine with no errors except when I click on the field that suppose to sort the data it does nothing.
This is the code: Created on test table name Reports2 3 fields id, r_date, r_doc_title
I have a set of records which are sorted AtoZ in display. Problem comes is like:
A.1 A.10 A.2 A.20 A.3 A.4 A.5 A.6 A.7 A.8 A.9
Actually A.10 is required after A.9 and A.20 after A.19.
I have searched for this, but found that on every page it sorts records like this. Also, I can not sort items based on ID (auto increment) because certain items are added at later time and some first.
I'm programming as ASP site to show the results of dynamically querying a MS Access database and outputting the results in a table. I've got that part to work. But, what I can't get to work is for the header row of the table to be links to sort the data ascending or descending by that particular field. All I can get to work is having a little +/- next to the column header and those sort it, but I can't figure out how to get the headers themselves to do both sorts when clicked.....can anyone out there help??? Thank you in advance!!! Also, if anyone knows about Access 2000, I've never tried doing this in it before, but I need to export one of the field to be links to HTML pages that describe those seminars, has anyone done that? Just figured I'd ask while I'm typing this
I have never sorted a recordset - using rs.Sort - i have no problem sorting it in SQL. All the tutorials i get say that i have to use a client cursor location, so this is my code:
I have the following code which connects to an access database table and prints out each record. For some reason, the ASC is not sorting the records for me. Can anyone see the problem? Code:
I have a table that is just dumping an entire database data. I would like to have the values of the columns re-sort the data. Not the column heads for the data displayed under the column head varies.
For example, one column, Components, displays 80 components types and another column, Category, displays 40 categories types. When a visitor clicks on one of the component values, it should then display only that data. I've done this before but, it has been a very long time. I remember creating a link surrounding the recordset in my table but what was written.
I'm trying to display number of records query and the results I'm getting are only for 10 and not the total number of records queried. For example if I query field "CA" and I know California has 12 records it still only gives me 10 records. Attached is the script.
I am trying to create a query to list products alphabetically. I want to have the letters of the alphabet on the web page and when someone clicks on the letter A for example, I want to list all the products beginning with the letter A. For B, all the products beginning with the letter B, and so on.
In my query, I know I need something like WHERE (((Product) Like "A*")), but how do I structure the query so I'm not listing Like "A*" for each of the 26 letters of the alphabet.
On my webpage I am having people search for house listings. www.fsbowesternwisconsin.com/buy.asp). They get done searching and they get the results. After the search has been done I want a drop down menu where they can then sort the results (bedrooms, bathrooms, location, etc etc). Its like how eBay works.
How can I dynamically sort the results from a Stored Procedure? Or more importantly, what is the fastest and most efficient way?I know I can do the sorting within the recordset in ASP, but AFAIK this is not the most efficient method.Ideally, I'd like to pass a parameter to the SP to indicate sorting field order.How do you guys go about this?
I'm trying to display data from a *.mdb database. I want to display new entries into the database within the last month. Currently the access database does not have a date field setup.
Is ther anything special i have to call a field to store dates and also what command would i need to use to call only items that have a date within the last month. Currently to display data i use "SELECT * FROM FilmInfo ORDER BY FilmName ASC" to pull data from the database.
I have to sort a table that get is recordset from another query, all this workes fine, the problem is that I have to then sort the table on three different fields based on what the user select in the combo box. Code: