Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

ASP+Treeview

Last post 04-14-2008, 11:09 AM by Czew. 0 replies.
Sort Posts: Previous Next
  •  04-14-2008, 11:09 AM 41343

    ASP+Treeview

    Hey,

    I'm currently developing my new homepage and I'm stuck at basic issue. Could some of you help me out? 

    <%
    ID=rs("ID")
    pID=rs("parentID")
    nName=rs("text")
    %>
    <%Do until NOT rs.EOF%>
    <%
    If pID=0 then
    response.write(nName) 'as root

    prevID=pID
    pID=ID

    If prevID=pID then
    response.write("space" & nName) 'roots follower.
    End If

    Else
    'if there is no value then we do nothing.
    End If
    %>

View as RSS news feed in XML