Solved

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

Posted on 2013-10-26
3
408 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

696 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