Search code examples
c#event-handlingkeydownvisual-web-developer

Textbox KeyDown Event in Visual Web Developer


I am trying to implement a KeyDown event for a textbox in Visual Web Developer. I am using C#. I know how to do this in a windows form but the technique isn't portable to VWD. I want to capture the text in the textbox when the user hits Enter.

Any advice is appreciated.

Regards.


Solution

  • Actually the textChanged method waits for the Enter key to be hit.