473,230 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

Copy Text To Clipboard

I have an ASP page in which I want to copy the contents of a variable (text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne
Jul 19 '05 #1
7 7647
Might want to explain _why_ you want to copy it to the clipboard in the
first place as there's most likely, a better way of achieving it.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable (text) to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne

Jul 19 '05 #2
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable
(text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?


There is no notion of a "clipboard" (or a "window" for that matter) in ASP
server-side code.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #3
Thanks for the responses. What I am trying to do is to collect a list of
email addresses and put it on the clipboard so the user can paste it into
their email app to send those addressees email.

Wayne

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable (text) to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne

Jul 19 '05 #4
Just output it to a text area (ASP doesn't have a server-side clipboard.
You'd need to find a way to do it using JScript/Javascript etc, on the
client-side)

I'm a little curious though.... surely if the persons are sending e-mails to
the recipients, they already have the recipients address's?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
Thanks for the responses. What I am trying to do is to collect a list of
email addresses and put it on the clipboard so the user can paste it into
their email app to send those addressees email.

Wayne

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable

(text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne


Jul 19 '05 #5
Just create a "mailto:" link with your list of email addresses as in:

<A HREF="mailto:ta*****@theirmail.com;ta*****@theirma il.com;">Send
emails</A>

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
Thanks for the responses. What I am trying to do is to collect a list of
email addresses and put it on the clipboard so the user can paste it into
their email app to send those addressees email.

Wayne

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable

(text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne


Jul 19 '05 #6
Thanks for the additional replies.

The list of email addresses is the result of a couple of queries where the
user sets certain criteria. The list of email addresses can be well over
1,000 bytes and mailto cannot deal with any target string longer that 250
(been there - tried that). I suspect the JavaScript function is the best
alternative.

Wayne

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
Thanks for the responses. What I am trying to do is to collect a list of
email addresses and put it on the clipboard so the user can paste it into
their email app to send those addressees email.

Wayne

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable

(text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne


Jul 19 '05 #7
Hello Wayne,

Did you find a way to get the content of your clipboard to your asp page?
After reading all the replies to your request, I guess none of them really
know how to do it. I've seen it done. I used an web application where
copied the source code of a web page from any site, then went to the browser
with the web application and pushed a button that will end up parsing all
the html to retrieve the data from the page. I'm looking for the same
functionality with no success. If I find it I'll let you know.

Good luck in your search.
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
Thanks for the responses. What I am trying to do is to collect a list of
email addresses and put it on the clipboard so the user can paste it into
their email app to send those addressees email.

Wayne

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:Om**************@TK2MSFTNGP11.phx.gbl...
I have an ASP page in which I want to copy the contents of a variable

(text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne


Sep 30 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tabonni | last post by:
Hello All I am creating an ASP page. There are a list of filename and checkbox next to it. When user checked all the documents they want and click ADD TO CLIPBOARD button. All filepaths will be...
4
by: Risto Heinonen | last post by:
Hi. I have a web page that has images and text. I can carefully select one image and the on the right of the image and then copy & paste to Word. Is it possible to make javascript do the same:...
2
by: Hariharan Subramony | last post by:
Hello Guys, I have an important issue and need solution at the earliest. Thanks in advance. I have a RichTextBox named say, ' rtb' that has the text "Hello, I am fine." To place it in the...
6
by: XmlAdoNewbie | last post by:
Hi All, I would like to put a method for copy, cut and paste into my application and this seems to be easy enough except that it's not working the way i would like it to, I thought someone might...
3
by: Tor Inge Rislaa | last post by:
Copy, Cut and Paste How to code the Copy, Cut and Paste functionality in VB.NET. In VB 6.0 I used the following code: 'For Copy Clipboard.Clear Clipboard.SetText...
5
by: DraguVaso | last post by:
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in...
2
by: Keith | last post by:
I'm trying to come up with a way to create a contextmenu that will do all the "standard" functions (cut, copy, paste, undo, etc). There seems to be a lot of information out there - but nothing...
3
by: SAL | last post by:
I have the following VB.net Class/Function that I call from an ASP.net page: Public Class MyTestClass Public Function embedHyperlink(ByVal fileID As Integer, ByVal fileName As String) As String...
17
by: Steve | last post by:
I'm trying to code cut, copy, and paste in vb 2005 so that when the user clicks on a toolbar button, the cut/copy/paste will work with whatever textbox the cursor is current located in (I have...
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm using the following in my console app: My.Computer.Clipboard.SetText(sb.ToString()) i'm getting inconsistent results with the copy. sometimes it works and most of the time i get...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.