如何将onpaste事件添加到gridview单元格或gridview中的标签

问题描述:

hi
我正在尝试向包含标签控件的gridview单元添加onpaste事件.
我可以使用文本框执行此操作,但无法将其添加到标签controls.provide soln.thanx

hi
i am trying to add onpaste event to gridview cell which contains label controls.
i am able to do this with textbox but i am unable to add it to label controls.provide soln.thanx

我得到了我的答案.
我将标签添加为itemtemplate.在itemtemplate标签onPaste事件上调用javascript函数.
在网格的情况下,我在onClick事件上调用javascript函数onkeyUp事件.

在javascript代码中,我hv检查是否粘贴事件类型.还要检查ctrl + Key.
i got my answer.
I hv added label as itemtemplate.calling javascript function on itemtemplate label onPaste event.
In case of grid i call javascript function onkeyUp event on onClick event.

In javascript code i hv check for event type paste or not.Also check for ctrl+Key.