Dusty,
If you need to put an event in your controls you can make it on the
construction of the webform and adding the properties
e.i.
If Not Me.Page.IsPostB ack Then
Me.txtLinea.Att ributes.Add("On KeyPress", "javascript
:ret urn
handleEnter(thi s, event, 1)")
Me.txtForma.Att ributes.Add("On KeyPress", "javascript
:ret urn
handleEnter(thi s, event, 1)")
End If
--
Ing. Noldis Chumacero Chávez
Departamento de Sistemas
AeroSur S.A.
Santa Cruz de la Sierra, Bolivia
Telf. 3364446(236) 77074919
"Dusty Hackney" <Du**********@d iscussions.micr osoft.com> escribió en el
mensaje news:C4******** *************** ***********@mic rosoft.com...
Hello,
I am programming aspx pages in VB ASP.NET. When using Windows forms, I am
able to use an event called KeyPress. However, I haven't been able to get
this to work in a Web Form. What do I need to do to be able to use the
KeyPress Event in a Web Form?
Thanks,
Dusty Hackney