I have a% static% representing folders and files in this template:
<asp:TreeView ID="TreeView1" runat="server">
<Nodes>
<asp:TreeNode Text="Diretorio1" Target="_blank">
<asp:TreeNode Text="arquivo1 " Target="_blank"/>
<asp:TreeNode Text="arquivo2" Target="_blank"/>
<asp:TreeNode Text="arquivo 3" Target="_blank"/>
</asp:TreeNode>
<asp:TreeNode Text="diretorio2" NavigateUrl="~/Employer.aspx" Target="_blank">
<asp:TreeNode Text="arquivo1" Target="_blank"/>
<asp:TreeNode Text="arquivo2" Target="_blank"/>
<asp:TreeNode Text="arquivo3" Target="_blank"/>
</asp:TreeNode>
<asp:TreeNode Text="Diretorio3" Target="_blank">
<asp:TreeNode Text="arquivo1" Target="_blank"/>
<asp:TreeNode Text="arquivo2" Target="_blank"/>
<asp:TreeNode Text="arquivo3" Target="_blank"/>
</asp:TreeNode>
</Nodes>
And I have two methods in the Entity Framework: One that returns a list of directories and another that returns list of files of a certain directory. Both already work and I want to apply it to my model.
How would I get this TreeView
popular with my methods?