Results 1 to 3 of 3

Thread: Execute event when return is entered

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Execute event when return is entered

    How do I execute an event when return is entered in a text field (instead of the user needs to click a button named "Login")

    In VB it's something like using KeyPress, I remember...

    Private Sub Text1_KeyPress(ByVal KeyAscii As Integer)
    If KeyAscii = 13 Then
    Response.Write("test")
    End If
    End Sub

    But how do I validate what key is pressed?

  2. #2
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    HAve you tried the TextChanged event ?

    Parksie

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Yes I have, ups sorry, forgot to say that this is where raise my sub from

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width