在asp.net中复制并粘贴文本 [英] copy and paste text in asp.net

查看:98
本文介绍了在asp.net中复制并粘贴文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在一个网络项目中有一个文本框,我想将此文本复制到用户剪贴板,并且它可以在每种浏览器中使用(firefox& ie& chrome),
我在客户端保存clipboars是否正确?我必须使用Java脚本吗?如何?
你能帮我吗?


i have a textbox in a web project i want copy this text to users clipboard and it works in every browser(firefox&ie&chrome),
is it correct that i save clipboars in client side?i must use java script?how?
could you help me?
thanks a lot.

推荐答案

那是一个非常糟糕的主意-除非他们按下标记为复制到剪贴板"的按钮,否则它很可能会激怒用户.当然,如果我不知道您的网站会这么做的话,这会惹恼我.
但是,如果必须的话,那么Google有很多方法可以做到:
That is a very bad idea - it is more likely to annoy users than not unless they press a button marked "copy to clipboard". Certainly, it would annoy the heck out of me if I didn''t know your site was going to do it.
However, if you must, then google has loads of ways to do it: http://www.google.co.uk/search?aq=f&gcx=w&sourceid=chrome&ie=UTF-8&q=COPY+TO+CLIPBOARD+JAVASCRIPT[^]


这篇关于在asp.net中复制并粘贴文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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