Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

.net

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

like image 543
Rajaram Shelar Avatar asked Oct 22 '25 01:10

Rajaram Shelar


1 Answers

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?

like image 137
Levi Botelho Avatar answered Oct 23 '25 15:10

Levi Botelho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!