将一个控件事件调用到另一个控件 [英] calling one controls event to another control
本文介绍了将一个控件事件调用到另一个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的gridview中有linkbutton。点击onclick事件时会被触发。但我可以通过鼠标悬停做同样的事情吗?
我已经在gridview中为linkbutton编写了代码。但我会通过鼠标点击工作。现在我想通过鼠标悬停访问相同的代码。
意味着,如果我将鼠标指针带到gridview的第一行,我需要触发linkbutton的onclick事件。有没有办法做到这一点?
请帮助...
提前谢谢
In my gridview have linkbutton. While clicking onclick event get fired. But can i do the same thing by mouseover?
i already wrote a code for linkbutton in that gridview. but i will work by mouse click. now i want to access the same code by mouseovering.
Means, if i bring mouse pointer to first row of the gridview , i need to fire the linkbutton's onclick event. is any way to do this?
pls help...
thanks in advance
推荐答案
<button id="someButton">Mouse over me!</button>
<script>
// The
函数用作简写document.ready function。
// http://api.jquery.com/jQuery /
function is used as short-hand for document.ready function. // http://api.jquery.com/jQuery/
( function (){
这篇关于将一个控件事件调用到另一个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文