How can I copy text from a textbox to a clipboard through a Web Form?

How can I copy text from a textbox to a clipboard through a Web Form? I am developing in C#. The clipboard is a typical UI feature, used by end users. In ASP.NET, the target UI is the browser, obviously, and there's no way to code anything in the browser (client-side) with C#, which runs on the server when the page is processed. Thus, there's no purpose in copying things to the clipboard on the server. There's no user to pick it later! And it would be dangerous to rely on such a mechanism to pass data around, as it's shared by the whole operating system, thus multiple Web application may overwrite each other's data, etc.

Start the conversation

0 comments

Register

I agree to TechTarget’s Terms of Use, Privacy Policy, and the transfer of my information to the United States for processing to provide me with relevant information as described in our Privacy Policy.

Please check the box if you want to proceed.

I agree to my information being processed by TechTarget and its Partners to contact me via phone, email, or other means regarding information relevant to my professional interests. I may unsubscribe at any time.