(急)请教各路高手:在网页中怎样使用Activex控件treeview,(一定给分)
问题点数:98、回复次数:3Top
1 楼karma(无为MS MVP)回复于 2001-12-09 10:47:30 得分 49
read this
HOWTO: Populate an ActiveX TreeView Control Using ASP (Q183329
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q183329Top
2 楼luojx(大鱼儿)回复于 2001-12-09 10:48:38 得分 49
//这是treeview的代码
<OBJECT classid=clsid:0713E8A2-850A-101B-AFC0-4210102A8DA7 id=TreeView1 VIEWASTEXT width="171" height="238" align="left">
<PARAM NAME="_ExtentX" VALUE="4419">
<PARAM NAME="_ExtentY" VALUE="6297">
<PARAM NAME="_Version" VALUE="327682">
<PARAM NAME="HideSelection" VALUE="0">
<PARAM NAME="Indentation" VALUE="100">
<PARAM NAME="LabelEdit" VALUE="1">
<PARAM NAME="LineStyle" VALUE="1">
<PARAM NAME="PathSeparator" VALUE="\">
<PARAM NAME="Sorted" VALUE="0">
<PARAM NAME="Style" VALUE="7">
<PARAM NAME="ImageList" VALUE="">
<PARAM NAME="BorderStyle" VALUE="1">
<PARAM NAME="Appearance" VALUE="0">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDragMode" VALUE="0">
<PARAM NAME="OLEDropMode" VALUE="0"></OBJECT>
//用法举例:(我用的是一栏目表,栏目通过F_parent_id既父id对应)
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
Sub window_onload
<%while not sRstGetSecInfo.eof%>
<%if sRstGetSecInfo("F_parent_id") = 0 then%>
set mNode=delsecform.TreeView1.Nodes.Add( ,,"T<%=sRstGetSecInfo ("P_tabsectininfo_id")%>","<%=sRstGetSecInfo("Subname")%>")
<%else%>
set mNode=delsecform.TreeView1.Nodes.Add("T<%=sRstGetSecInfo("F_parent_id")%>",4,"T<%=sRstGetSecInfo("P_tabsectininfo_id")%>","<%=sRstGetSecInfo("Subname")%>")
<%end if%>
<%sRstGetSecInfo.movenext%>
<%wend%>
End Sub
注:看不懂或有什么问题继续问Top
3 楼bluecetacean(剑鱼)回复于 2001-12-09 15:48:09 得分 0
我在微软网站http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q183329 上下载一个例子,在本机运行正常,在别的机器上无法访问,请问有没有别的地方需要设置?Top




