
28/06/2006, 08:30
|
| | Fecha de Ingreso: junio-2006
Mensajes: 109
Antigüedad: 18 años, 8 meses Puntos: 2 | |
__doPostBack Puedes agregar el evento del lado del cliente onkeypress="hacerAlgo(event, txtPClave)" a la caja de texto. Posteriormente dentro del del evento "hacerAlgo" manda llamar el el click de tu boton y tendras que hacer un __doPostBack
Algo asi:
function hacerAlgo(e,txt)
{
var iKeyCode = 0;
var caja = txt.id;
if (window.event)
{
iKeyCode = window.event.keyCode
if(iKeyCode.toString() == '13')
{
document.all.btnBuscarPC.click();
__doPostBack(caja,'');
}
}
else
{
if (e) iKeyCode = e.which;
{
if(iKeyCode.toString() == '13')
{
document.all.btnBuscarPC.click();
__doPostBack(caja,'');
}
}
}
}
Saludos
Última edición por juantiva; 28/06/2006 a las 08:42 |