|
-
Jun 4th, 2008, 01:38 AM
#1
Thread Starter
Lively Member
[2008] ASP.NET VB - TreeView Node And SQL
Hi All,
I have successfully followed a article which shows how to populate a treeview using SQL as the datasource.
What I would like to do is then only a person's name is clicked, their information is displayed using SQL as the datasource.
The TreeView has been setup in the following structure
-Company Name
|
|_ Accounting
| |
| |_John
| |_Mary
|
|_Marketing
|
|_David
|_Joan
-
Jun 4th, 2008, 03:50 PM
#2
Re: [2008] ASP.NET VB - TreeView Node And SQL
Are you looking to handle an event in which the node is clicked? Why not set the NavigateUrl property for the treeview nodes when populating them?
-
Jun 4th, 2008, 08:07 PM
#3
Thread Starter
Lively Member
Re: [2008] ASP.NET VB - TreeView Node And SQL
Hi mendhak,
On NodeSelect Handle would be the way to go. How would I apply the NavigateURL only to the nodes with a name?
-
Jun 5th, 2008, 10:53 AM
#4
Re: [2008] ASP.NET VB - TreeView Node And SQL
I see that the Treeview has a DataBound event that you can use. Use it to access your nodes and set the NavigateUrl property.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|