开发者

Catch a focus lost event in a web forms textbox?

开发者 https://www.devze.com 2023-01-23 01:28 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消