Author: WilliamSnell | Posted on: 7/16/2009 12:22:41 PM | Views : 325

I've started creating custom server controls and event classes, and came to wonder about triggers. Is it possible to create our own? As an example, many developers (me included) would have loved to see a TextChanged event in the TextBox control that would fire upon any keystroke in the TextBox, not only upon PostBack. JavaScript handles this, but isn't sufficient. In some cases, it would be advantageous to place a TextBox control inside of an UpdatePanel control and do some server-side checking based on values entered as the user types.
I can understand why this functionality wasn't included in the beginning, because firing off server-side events upon each keystroke would have caused a PostBack each time, which is extremely obnoxious. Now that we have Ajax, however, it would be mighty fine. This bring me to my actual question.
As I understand it, there is currently no server-side event trigger in place to fire off an event for a keystroke withi ...

Go to the complete details ...