Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve text from clipboard

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Hi,

In ASP, how to retrieve the text from the clipboard?
 
Code:
'SetData
Dim aDataObject As New DataObject()
aDataObject.SetData(DataFormats.Text, Me.ToClipboardTextBox.Text)
Clipboard.SetDataObject(aDataObject)

'GetData
If Clipboard.GetDataObject.GetDataPresent(DataFormats.Text) Then
    Me.FromClipBoardTextBox.Text = Clipboard.GetDataObject.GetData(DataFormats.Text)
End If

Gee... that was the second hit on a google search...


Just my 2¢

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
That code doesn't look like classic asp to me

wouldn't this be a security issue anyway ?....

call me a doubter, but I doubt that'll work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top