Last post Jun 22, 2011 04:42 AM by Zheeph
Jun 15, 2011 04:10 PM|CARL2010|LINK
My web page displays a list box which is populated from a sql server database. The user wants to be able to click a button which copies part of the data in the list box.
I found lots of examples which do not really do what I want or do not work.
Jun 15, 2011 04:20 PM|Lazz. _|LINK
Copy to clipboard is often blocked by the webbrowser due to privacy and security reasons. There's is no reliable way to automatically set a users clipboard data from a web page.
Jun 21, 2011 07:13 AM|Zheeph|LINK
here, I'll be searching for a solution too like I've been doing for the past 1,5 hours.
Jun 21, 2011 10:02 AM|Zheeph|LINK
I found something neet. The information I needed was displayed in a messagebox, and I just found out that with Control + C we can get everything from the text box, so that solved my problem as I simply told the user to Control + C if he needed this info.
Jun 21, 2011 11:34 AM|CARL2010|LINK
I need to be able to copy some text from a listbox. control +C will not work for me. The listbox is made up of several columns of data read from a sql database. the user wants to be able to copy and paste a portion of that data. I simply want to be able
to code a button which when clicked, copies some of the data. i found idataobject which can copy data to a clipoboard but this is only available in system.windows.forms and is not allowed to be imported into a web based application.
Jun 22, 2011 04:15 AM|Zheeph|LINK
Jun 22, 2011 04:29 AM|Lazz. _|LINK
As I've said in my previous post, there is no reliable way to gain direct access to the clipboard. I would recommend something like a button showing a popup with a copy/paste friendly textarea.
Jun 22, 2011 04:42 AM|Zheeph|LINK
I couldn't agree more. Would be a lot easier to implement, too.