Solved

How do I copy clipboard text to a file on ctrl V? (In ASP.NET  C#)

Posted on 2013-10-26
3
402 Views
Last Modified: 2013-10-30
How would I copy the text from a clipboard to a text file row by row?

What is want is when I highlight some text and right click on the mouse to copy, it writes the info from the clipboard to a text file.

Thanks for the help in advance.
0
Comment
Question by:bmanmike39
  • 2
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39603167
With a web page?  That would require the browser to access the file system which would be a huge security hole.  

You might be able to do it with an hta, but not a normal web page.

Cd&
0
 

Author Comment

by:bmanmike39
ID: 39603178
I understand the security issue.  But the site I am copying data from is trusted.  I thought I would be able to set the security in the browser to allow access to the clipboard.  Then when we are done working on the site reset the security to normal. Is this possible?
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39603220
No. I have seen some strange and unsafe thing done with activeX, but I have not seen one where it can do what you describe. There might be some control like that around.

If you need the data on file, you might try going server to server and transfering that way, as long as the target site co-operates by not blocking you. On your server you should be able to save the data anyway you want; though you might need to do some parsing depending on the format.

Cd&
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now