|
-
Jun 10th, 2008, 10:14 PM
#1
Thread Starter
Lively Member
[RESOLVED] [2008] ASP.NET VB - Display Image When Hovering Over TreeView Node
Hi All,
Does anyone have any suggestions on how to display an image when hovering over a treeview node?
The image itself is stored in a SQL database.
-
Jun 10th, 2008, 10:38 PM
#2
Thread Starter
Lively Member
Re: [2008] ASP.NET VB - Display Image When Hovering Over TreeView Node
Never mind, I solved this one by setting the node ImagURL property eg.
vb Code:
node.ImageURL = "picture.aspx?EmployeeID=" + node.value
-
Jun 11th, 2008, 03:05 PM
#3
Re: [RESOLVED] [2008] ASP.NET VB - Display Image When Hovering Over TreeView Node
If you wanted an image to be shown on hover, it would be a little more complicated than that. First you'd need to 'preload' the images via javascript rendered to the page via ClientScript.RegisterClientScriptBlock. Then you'd have to do an attributes.add on your node, give it an "onmouseover" and then call a javascript function which changes the image from its current image to the one in the array.
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
|