Rajaram Shelar
Rajaram Shelar

Reputation: 7897

How to make "Add to clipboard" functionality in asp.net

How do I achieve add to clipboard functionality in asp.net web site, if I have to copy text in textbox or label. Please help

Upvotes: 4

Views: 25802

Answers (1)

Levi Botelho
Levi Botelho

Reputation: 25234

You need to implement this with JavaScript, as copying to the user's clipboard has to be done on the client machine and not on the server. See this post:

How do I copy to the clipboard in JavaScript?

Upvotes: 7

Related Questions