1

How to copy a text in asp.net page into Clipboard using vb.net code-behind ?
And what libraries to import ?

John Saunders
  • 157,405
  • 24
  • 229
  • 388
Ahmed
  • 179
  • 5
  • 13

1 Answers1

3

You can't copy text into clipboard from serverside because client's memory belongs to the client. You must use javascript for this purpose and that's browser dependent.

What you can do from serverside is to register a client script-block that will be executed on load of your webform to copy the text into clipboard as soon as possible.

Community
  • 1
  • 1
Tim Schmelter
  • 411,418
  • 61
  • 614
  • 859