LinkBut​​ton的Onmouseover [英] Onmouseover for LinkButton

查看:84
本文介绍了LinkBut​​ton的Onmouseover的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends

在gridview我有一个下拉列表和链接按钮.下拉列表具有来自db的绑定值.在下拉列表中进行选择之后,与下拉列表中的选定值相对应,链接按钮需要将来自db的数据列表显示为一列.这将在链接按钮上的鼠标悬停时发生

有人可以帮我解决这个

Hi Friends

In gridview i have an dropdownlist and linkbutton. The dropdownlist has the binded values from db. After the selection made in dropdownlist, Corresponding to the dropdownlist selected values the link button needs to show a list of datas from db as a one column. This will occur on mouseover in the linkbutton

Will any one help me on this

推荐答案

尝试一下,

您必须像这样从Grid OnRowDataBound事件将MouseOver事件绑定到Linkbutton,

Linkbttonid.Attributes.Add("onmouseover","fn_BindList()");


这里的fn_BindList()是在链接按钮上悬停鼠标时实际上会调用的函数.....

我想你的案子是一样的....

因此,只需将您的逻辑写入上面的函数"调用中即可,即从数据库中获取值并将这些值显示到网格中.

希望对您有所帮助.
Try this,

you have to bind a MouseOver Event to your Linkbutton from Grid OnRowDataBound Event like this,

Linkbttonid.Attributes.Add("onmouseover","fn_BindList()");


Here fn_BindList() is the function which will actually called when mouseover in the linkbutton .....

I think you case is the same....

So then just write your logic into Above function call i.e. Take value from database and show those values into your grid.

I hope this will help you.


这篇关于LinkBut​​ton的Onmouseover的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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