Text Changed event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omlac
    New Member
    • Aug 2008
    • 10

    Text Changed event

    Good day
    Im using java script to handle the textchanged event of a textbox, im registering the javascript at form load as tboContent.Attr ibutes.Add("OnC hange", "return TextChange();") ;
    but the event fires only after i click on another control which postback. i want the event to fire everytime i type in something.
    I have set the autopostback to true on the textbox.

    Does anyone know how to solve this.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    the onchange-event is fired when the element loses focus ... otherwise you could use the keypress events but this fires everytime you type in something and may be you don't want postbacks everytime? so you would have to handle the keypress clientside to decide whether you need a postback or not.

    kind regards

    Comment

    • omlac
      New Member
      • Aug 2008
      • 10

      #3
      Thank you very much it worked.

      Regards

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        glad to hear that ;) ... post back to the forum anytime you have more questions ...

        kind regards

        Comment

        Working...