如何复制工具提示中的文本 [英] How to Copy the text present in the tool tip

查看:111
本文介绍了如何复制工具提示中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的网页中,我从sql server中获取数据并使用网格视图在前端显示.其中一列包含冗长的数据.为此,我在工具提示中的鼠标悬停时在网格中显示了部分数据,并显示了完整的数据现在我需要完全复制工具提示中的数据.如果我将文本复制到网格中,则仅复制部分数据.

请任何人帮助我

Thnks in Advance,

Hi,
In my Webpage I fetch the data from the sql server and display in front end using grid view.One of the column having the lengthy data.For that i showed partial data in the grid on mouse hover in tooltip I showed full data which is present in the column.Now i need to copy the data fully which is coming in the tooltip.If i copy the text in the grid it copies only the partial data.

plz any one help me

Thnks in Advance,

推荐答案

在浏览器中运行的ASP.NET具有限制,您不能直接复制到剪贴板,因为这需要其他插件,或者可以通过客户端实现-副脚本.

这些将不会那么有效,并且处理将更加困难,如果您使用的是Silverlight或其他使用此方法的方法,或者您希望通过保存在Cookie中,则我不理解您放入剪贴板的原因,或者将其保留在客户端缓存等...
ASP.NET running in browser has restrictions and you cannot copy to clipboard directly, for that you need additional plugin or you can achieve through client-side scripts.

These will not be so effective, and processing will be harder, i don''t understand your reason to put in clip-board, if you are using Silverlight or something use this, or prefer other alternatives, by keeping in cookie, Client side Caching etc...


您无法复制工具提示文本.

您可以通过代码获得完整的工具提示文本 [ ^ ](在使用鼠标时),然后将其复制到
You cannot copy tooltip text.

What you can do is, via code, get the full tooltip text[^] (when mouse is hoevered) and then copy it to the clipboard[^].


您可以在mozilla中使用firebug.通过检查在任何控件上复制工具提示文本.
you can use firebug in mozilla. to copy tooltip text on any control by inspecting it.


这篇关于如何复制工具提示中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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