Click here to Skip to main content
15,914,013 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Is there a way in ASP.NET LinkButton to have an hover event so that when I hover my mouse on it, it will show me the preview of an image if the LinkButton contains a link to an image file. I really need your help everyone. Please.
Posted
Updated 19-May-13 20:34pm
v2
Comments
Sergey Alexandrovich Kryukov 20-May-13 2:34am    
Before "executing event", you need to have the event handler. Did you do it?
—SA
Chris N.P. 20-May-13 2:41am    
Can you tell me how to do it please. Someone suggested onmouseover but it doesn't work for me.
Sergey Alexandrovich Kryukov 20-May-13 6:16am    
I found my past answer, very close, with sample code, the one I fully tested. Please see Solution 3.
—SA

When googling ASP.NET linkbutton hover, the first result is this: How to add a mouseover event for linkbutton. (asp.net)[^] You might be able to alter this to do what you are looking for.
 
Share this answer
 
v2
Comments
Chris N.P. 20-May-13 2:42am    
Is this applicable for an image? Can you show me how?
 
Share this answer
 
v2
Comments
Chris N.P. 20-May-13 3:00am    
Thank you for this. But I'm having trouble with this onmouseover, it seems that my VS 2008 can't recognized it. There's no such event there.
Thanks7872 20-May-13 3:03am    
copy paste the linkbutton shown in that answer.
Chris N.P. 20-May-13 3:12am    
If I tell you what I'm trying to do I believe you would be able to resolve my concern.
I do have a page in one of my web application that recursively get all the folders of the server's D drive and inside each folder it contains files and subfolders. Now what I want to do is to apply an image preview when I hover the mouse on it.
Please see my past answer: how can i zoom product image on hover ?[^].

—SA
 
Share this answer
 

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