Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript create file issue 4 47
Connection String 16 43
Interview question Javascript, database 12 29
Get Client IP on RDS - VB.NET 15 25
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

910 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

20 Experts available now in Live!

Get 1:1 Help Now