开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜