Catch a focus lost event in a web forms textbox?
How can I "listen" for the focus lost ev开发者_Python百科ent of a textbox in a .NET web form? Is the only way using OnBlur in combination with JavaScript?
Thanks :-)
"Is the only way using OnBlur in combination with JavaScript?"
Yes
If the Text was changed you can also use the TextChanged-event(when AutoPostBack="True").
This SO-Question describes how to customize a Textbox to raise a FocusLost-Event on serverside.
精彩评论