Reputation: 7897
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
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