How to copy a text in asp.net page into Clipboard using vb.net code-behind ?
And what libraries to import ?
How to copy a text in asp.net page into Clipboard using vb.net code-behind ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.
They recommend to use zeroclipboard, i have no experiences with it.
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.