如何将网址与所选文字一起粘贴 [英] How to Paste the url along with the selected text

查看:110
本文介绍了如何将网址与所选文字一起粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个名为student.aspx的网页.此页面上有一些文字.用户从页面复制一些文本,当用户将文本粘贴到系统中的某个位置时,用户也应该能够将复制的文本与网页链接一起粘贴.怎么做?

示例:

这是用于测试.

当我复制以上行并将其粘贴到某些地方时
我应该得到
这是用于测试.
http://www.sample.com/student.aspx

Hi all,

I have web page called student.aspx. This page has some text. User copies some text from the page, when User Pastes the text some where in his system, the user should be able to Paste the copied text along with the web page link also. How to do it?

Example:

This is for testing.

When I copy the above line and paste it some where
I should get
This is for testing.
http://www.sample.com/student.aspx
the text should be pasted with the location where it was copied.

推荐答案

您可能必须在应用程序中处理剪贴板事件,并添加所需的文本.

此链接上的剪贴板事件示例适用于Windows,不确定对asp.net不太熟悉,可以将其应用于asp.net的范围

http://www.radsoftware.com.au/articles/clipboardmonitor.aspx [ ^ ]
You may have to handle the clipboard event within you application and append the text you prefer.

The clipboard event sample on this link is for windows and not sure how far you can adopt to this to asp.net as am not very familiar with asp.net

http://www.radsoftware.com.au/articles/clipboardmonitor.aspx[^]


这篇关于如何将网址与所选文字一起粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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