
21/05/2004, 10:27
|
 | | | Fecha de Ingreso: abril-2004 Ubicación: México, D.F.
Mensajes: 112
Antigüedad: 20 años, 11 meses Puntos: 0 | |
How can I set focus in a Textbox into a WebUserControl? Hello everybody:
I have a WebUserControl embedded into a Web Form (I’m using C# .net).
When I load Web Form I need to set the cursor into a Textbox that is into WebUserControl.
In <body> of Web Form I have:
<body bgColor=”#ccfff MS_POSITIONING=”GridLayout” onload=”document.WUCDatos.TextBox2.focus(); “>
Where WUCDatos is form id of WebUserControl and TextBox2 is the Text Box into WebUserControl.
But this code doesn’t work.
I’ll appreciate your help.
A.L.
__________________ El hombre que tiene amigos ha de mostrarse amigo.... |