62,267
社区成员
发帖
与我相关
我的任务
分享
if (Cache["FileTree"] == null)
{
//绑定FileTree
Cache.Insert("FileTree", FileTree);
int a = FileTree.Nodes.Count;
}
else
{
FileTree = Cache["FileTree"] as TreeView;
int a = FileTree.Nodes.Count;
}
<asp:TreeView ID="FileTree" runat="server"
ImageSet="Simple" style="margin-left:4%; margin-top:4%;" >
<Nodes>
</Nodes>
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black"
HorizontalPadding="5px" NodeSpacing="2px" VerticalPadding="0px" />
</asp:TreeView>