Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to create a asp.net application that has a treeview in left hand side, a different page for each node on the right hand side, if a user click a node1, it will show UI on the right, node2 will show another UI, can anyone tell me what is the best practice to implement it? Thanks in advance.
Posted
Comments
Maciej Los 8-Mar-14 17:38pm    
It is called "Master page".
Member 1284721 8-Mar-14 20:11pm    
Thank you Maciej.

I want to update only the UI in right hand side and don't want to load the whole page again
Sergey Alexandrovich Kryukov 8-Mar-14 22:20pm    
If "UI" is on right side, what is the tree view on left. Not UI?! It all sounds weird... What's the problem, anyway?
—SA

1 solution

Use MasterPage to display TreeView for your site and the Right Side will be the ContentSection which loads the Different Pages according to the TreeView selection. See the Comments from Maciej and SA. One more thing as SA these( whatever controls that appear in the browser ) are collectively Called as UI and rather you meant to say showing different Content Pages or UserControls .

Adding some references for you to start with.

navigation/treeview-masterpages-csharp/[^]

http://msdn.microsoft.com/en-us/library/aa581781.aspx[^]
 
Share this answer
 
v2
Comments
Maciej Los 9-Mar-14 7:42am    
Good point, +5!
JoCodes 9-Mar-14 23:17pm    
Thanks Maciej...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900