Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/09/2004, 14:39
Avatar de RootK
RootK
Moderador
 
Fecha de Ingreso: febrero-2002
Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 22 años, 3 meses
Puntos: 50
Eso lo puedes hacer con javascript...

Ejemplo:

dentro de tu head:

Cita:
function CopyField() {
var tempval = document.getElementById('textInput');
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
}
en tu body:

<asp:textbox id="textInput" runat="server"></asp:textbox>

Y usando un htmlcontrol..(boton) le asocio el evento que me va a seleccionar el texto de mi texbox y lo va a mandar al clipboard.

<INPUT type="button" value="Button" onclick="CopyField()">

Esta listo para usarse.. prueba y me dices que tal..

Salu2