TreeNode tnRoot = new TreeNode();
tnRoot.ID = "dhArea" + i.ToString() + "\" onmouseup=\"javascript:SetWidthHight();";
tnRoot.Text = "基本资料区域";
tnRoot.NavigateUrl = "~/BaseInfo/Area/Area.aspx";
tnRoot.Target = "WelcomeForeignGuestMain";
TreeView1.Nodes.Add(tnRoot);
tnRoot.Target = "WelcomeForeignGuestMain" + "\" onmouseup=\"javascript:SetWidthHight();";//关键就在加红的这段代码。 TreeView加javascript
最新推荐文章于 2024-03-14 16:38:34 发布
本文详细介绍了如何在应用程序中使用TreeView控件来构建一个包含特定属性节点的复杂导航结构,包括设置节点的ID、文本、导航URL和目标窗口。
768

被折叠的 条评论
为什么被折叠?



