469,936 Members | 2,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,936 developers. It's quick & easy.

Simple problem with loop and asp conversion

Hi
I want to convert this piece of asp code into aspx but don't know how to start

I am also having a little problem with the following loop, I want to return all the values pulled from the xml file into the response.write in the html but am not sure what type of loop I should use to get this to work... Please help
...:: CODE ::.
<
'Load XM
set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = fals
xml.load(Server.MapPath("ProjectTEST.xml")

Dim sDate(200,100
Dim sNodes(200,100
Dim fDate(200,100
Dim fNodes(200,100
'Task Start Dat
node=-
var=-

set oNodes=xml.selectNodes("/Project/Tasks/Task/Start"

for each oNode in oNode
node=node+
for i=0 to 9
sNodes(node,i) = oNode.tex
nex

var=var+
for i=0 to 9
sTemp = sNodes( node,0
sDate( var,i ) = Mid( sTemp, 1, 10
next
nex
'Task Finish Dat
node=-
var=-
set bNodes=xml.selectNodes("/Project/Tasks/Task/Finish"

for each bNode in bNode
node=node+
for i=0 to 9
fNodes(node,i) = bNode.tex
nex
' Write whole data and time for Finish of task as seen in XML Documen
'response.Write fNodes(node,0) & "<br>

'Break up date into different variable
var=var+
for i=0 to 9
fTemp = fNodes( node,0
fDate( var,i ) = Mid( fTemp, 1, 10
next
nex
%><HTML><BODY><Table><tr
Start loop her
<TD id='item_1_2' class='NormalText' nowrap align='center'>&nbsp;<%response.write(DateDiff("d" , sDate(var,0), fDate(var,0)) )%></TD
End loop her
</tr></BODY></HTML

Thanks for any hel

Nov 18 '05 #1
0 796

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Nicolay Korslund | last post: by
8 posts views Thread by CAFxX | last post: by
3 posts views Thread by Paul | last post: by
31 posts views Thread by Martin Jørgensen | last post: by
7 posts views Thread by Tony Johansson | last post: by
6 posts views Thread by Rocketmagnet | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.