Ahmed
Ahmed

Reputation: 189

Clipboard in .Net VB.NET web forms

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

Upvotes: 1

Views: 3849

Answers (1)

Tim Schmelter
Tim Schmelter

Reputation: 460018

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.

Upvotes: 3

Related Questions