Simple problem with loop and asp conversion

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top