如何使用鼠标悬停与底层数据库在动态创建的按钮上显示图像弹出窗口 [英] how to display an image popup on dynamically created buttons with mouseover with underlying database

查看:99
本文介绍了如何使用鼠标悬停与底层数据库在动态创建的按钮上显示图像弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾尝试使用hovermenuextender来完成此操作,初始结果似乎很好。我遇到的问题是我显示的面板需要在每次鼠标悬停时更改图像。有人可以指导我如何创建一个事件或扩展hovermenuextender以容纳图像的数据库查找,这样我就可以在面板上显示正确的一个。



我是现在动态创建自定义按钮。基本上我已经使用位图url属性创建了一个按钮控件。我想将位图网址分配给鼠标悬停时弹出的面板上的图像。



提前谢谢

I have tried to use the hovermenuextender to accomplish this and initial results seem fine. The issue that I have is the panel that I have showing needs the image to change on each mouseover. Can someone direct me how to create an event or extend the hovermenuextender to accomodate the database lookup of the images so I can display the correct one on the panel.

I am creating custom buttons dynamically now. Essentially I have made a button control with a bitmap url property. I want to assign the bitmap url to the image on the panel that pops up on mouseover.

Thank you in advance

推荐答案

Hai

尝试为动态创建的按钮添加鼠标悬停事件。我想你使用css进行鼠标浏览

试试这个链接



https://www.google.co.in/?gfe_rd=ctrl&ei=1LMnU6TJPIHDuASh9YHwCA&gws_rd=cr#q=add+mouseover+event+for +动态+创建+按钮+ + c%23& spell = 1 [ ^ ]


这篇关于如何使用鼠标悬停与底层数据库在动态创建的按钮上显示图像弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆