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.
Dig Deeper on C# programming language
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ... Continue Reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers. Continue Reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.