1. Copy the contents of the Runtime directory to the webctrl_client\1_0 directory under your top-level site directory. For example, if your site root is c:\Inetpub\wwwroot, type this at the command prompt: xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0 /y This will create the following directory structure under the site: /webctrl_client/1_0 MultiPage.htc TabStrip.htc toolbar.htc treeview.htc webservice.htc webserviced.htc [images] * [treeimages] * 带星的看到了吗?那就是图的文件夹,你不按他说的建文件夹,他是找不到的,就显 不出来了:)
tn.Text="string";
treeview1.Nodes.Add(tn);
只显示string,不显示链接
看看wwwroot中有没有C:\Inetpub\wwwroot\webctrl_client\1_0这个目录。
directory under your top-level site directory. For example, if your
site root is c:\Inetpub\wwwroot, type this at the command prompt: xcopy /s /i .\build\Runtime c:\Inetpub\wwwroot\webctrl_client\1_0 /y This will create the following directory structure under the site: /webctrl_client/1_0
MultiPage.htc
TabStrip.htc
toolbar.htc
treeview.htc
webservice.htc
webserviced.htc
[images] *
[treeimages] *
带星的看到了吗?那就是图的文件夹,你不按他说的建文件夹,他是找不到的,就显
不出来了:)
{
System.Data.DataView dvNode=new System.Data.DataView();
TreeNode tmpNode;
dvNode.Table=dsNode.Tables["目录"];
dvNode.RowFilter="ParentID="+ParentID;
foreach (System.Data.DataRowView drv in dvNode)
{
tmpNode=new TreeNode();
tmpNode.Tag=(object) drv["NodeID"];
tmpNode.Text=drv["NodeText"].ToString() ;
CurNodes.Add(tmpNode);
CreateTree(tmpNode.Nodes,System.Int16.Parse(tmpNode.Tag.ToString()));
}
return true;
}
//我的一个生成目录树的函数!用Tag存储目录号!