Results 1 to 3 of 3

Thread: [RESOLVED] [2008] ASP.NET VB - Display Image When Hovering Over TreeView Node

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Resolved [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.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Talking 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:
    1. node.ImageURL = "picture.aspx?EmployeeID=" + node.value

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width