正在阅读:ASP.NET中不定级动态菜单的实现ASP.NET中不定级动态菜单的实现

2004-09-01 10:24 出处:CSDN 作者:xiangwa 责任编辑:linjixiong


  If j = 0 Then
  j = Len(Trim(objRead.Item("classid")))
  Else
  strid = strid1
  strname = strname1
  i = Len(Trim(objRead.Item("classid")))

  k = i - j

  Select Case k
  Case Is > 0
  txtwriter.WriteLine("<treenode text='" & strname & "' NavigateUrl='xxcb_add.aspx?classname=" & strname & "" & strand & "classid=" & strid & "'  Target='main1'>")
  Case Is = 0
  txtwriter.WriteLine("<treenode text='" & strname & "' NavigateUrl='xxcb_add.aspx?classname=" & strname & "" & strand & "classid=" & strid & "'   Target='main1'/>")
  Case Is < 0
  txtwriter.WriteLine("<treenode text='" & strname & "' NavigateUrl='xxcb_add.aspx?classname=" & strname & "" & strand & "classid=" & strid & "'   Target='main1'/>")
  'txtwriter.WriteLine("</treenode>")

  m = k
  While m < 0
  txtwriter.WriteLine("</treenode>")
  m = m + 2
  End While

  End Select

  j = Len(Trim(objRead.Item("classid")))

  End If

  strid1 = Trim(objRead.Item("classid"))
  strname1 = Trim(objRead.Item("classname"))

  End While


察看评论详细内容 我要发表评论
作者笔名 简短内容 发表时间
:

键盘也能翻页,试试“← →”键

关注我们

最新资讯离线随时看 聊天吐槽赢奖品