Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web application that creates buttons dynamically. It can create up to 120 buttons depending on the underlying database. I am looking for the best way to make a panel popup with an image of the product when the mouse hovers over the button for a few seconds. I thought about using the hover extender but after reading a few threads on performance issues I a mot sure if that will be the best solution. I am open to any suggestions to make this work. Thank you in advance for your time in answering my question.
Posted
Comments
syed shanu 16-Mar-14 20:36pm    
You can use mouse over and mouse out function in javascript.
you can call the javascript from the button and pass image path to your script.In javascript display Div or panel and display the images inside div.In mouse out hide the Div or panel.

use ajaxcontrol toolkit and u have this extension control to perform this
 
Share this answer
 
v2
Comments
ChakriKAC 17-Mar-14 0:21am    
Can you tell which toolkit control is helpful in doing this??
uve got sample here

http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/[^]


download the toolkit from


http://ajaxcontroltoolkit.codeplex.com/[^]


have fun happy week
 
Share this answer
 
You can use jQuery Dialog[^].

While creating Buttons dynamically, add one CssClass attribute to them and provide a class name common to all the Buttons.

Then on JavaScript, use class selector to select these Buttons and raise their onmouseover event and inside the event open the Dialog.

See one example - Open jQuery Modal Popup Window on Button Click in ASP.Net[^]. Here it opens the Dialog on Button Click and selects the Button by ID. You just need to replace that by class selector and click event by onmouseover.
 
Share this answer
 
v2

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