You are trying to have the web server copy information to the client
clipboard? You can't do this. The nature of ASP.NET is that when the code
executes, it is executing on a web server somewhere. When that code is done
executing (emphasis on "done"), it returns the results of the code (emphasis
on results) to the calling client.
You never have a dedicated real-time connection between the client and
server for the purposes of code processing. It pretty much boils down to
your ASP.NET code can control and "talk" to elements accessible to the
server and your resulting HTML can control and "talk" to elements accessible
to the client.
But because neither HTML or JavaScript give you an API to the client Windows
clipboard, you are out of luck.
However, users can still use the traditional ways to cut, copy and paste
(keyboard shortcuts, right clicking).
Michael SL said:
I have been looking in the newsgroup but cannot find what I need. I am
using Visual Studio to to build a VB.Net application using
System.Web.UI.Page NOT windows.forms. The server fills a textbox and sends
it to the client. Initially I wanted to print the textbox but after viewing
the complexity it was decided we did not want to spend that amount of time
on this. Now the desire is for the client clicking a "button" to have the
contents of the textbox copied to the windows clipboard so they can paste
the textbox contents into Word or Notepad. Please help - Thanks.