473,382 Members | 1,658 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,382 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 7656
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.