Solved

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

Posted on 2013-10-26
3
404 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…

773 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