本文介绍了关于TreeNode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用.NetFramework 2.0

I am using .NetFramework 2.0 in my application

<%@ Register TagPrefix = "iewc" Namespace = "Microsoft.Web.UI.WebControls" Assembly = "Microsoft.Web.UI.WebControls "  %>


我将此Microsoft.Web.UI.WebControls.dll文件添加到bin文件夹


I added this Microsoft.Web.UI.WebControls.dll file to bin folder

<iewc:TreeView ID = "tr" runat = "server">

<iewc:TreeNode  Text="Help" ID="Help">

<iewc:TreeNode  Text="news" ID="Help"></iewc:TreeNode>
<iewc:TreeNode  Text="article" ID="Help"></iewc:TreeNode>
<iewc:TreeNode  Text="machines" ID="Help"></iewc:TreeNode>

</iewc:TreeNode>

</iewc:TreeView>



当我执行此应用程序时,我的浏览器显示空白页

帮助我解决.



When I execute this application,My browser is showing a blank page

Help me to solve.

推荐答案

<iewc:TreeView ID = "tr" runat = "server">
   <Nodes>
      <iewc:TreeNode  Text="Help" ID="Help"  >
      </iewc:TreeNode>
   </Nodes>
</iewc:TreeView>



[edit]忘记将您的& gt"更正为>" -OriginalGriff [/edit]



[edit]Forgot to correct your "&gt" to ">" - OriginalGriff[/edit]


这篇关于关于TreeNode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 16:51