TreeView questions

M

musosdev

Hi,

I'm using an asp:TreeView control on my master page for navigation of
documents. However, I am experiencing a couple of problems.

The first, and fundamental one, is that I can't seem to get to the TreeView
from the content page. I'm trying...

TreeView tree = (TreeView)Master.FindControl("treeDocuments")

.... but I keep getting a NullReferenceException error. :eek:(

What's going on?!

Secondly, I want to expand/collapse sub-nodes automatically when a node is
clicked, but there doesn't seem to be an OnClick event?! How can I do this?!

Thanks,


Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,630
Members
45,335
Latest member
Tommiesal

Latest Threads

Top