开发者

How to call a server side function on Leave event of a ASP.Net TextBox

开发者 https://www.devze.com 2022-12-15 19:52 出处:网络
I am building a user registration form in a开发者_C百科sp.net. I want to check if the username is available or not on the leave event of the TextBox. I am not able to get the Leave Event of the TextBo

I am building a user registration form in a开发者_C百科sp.net. I want to check if the username is available or not on the leave event of the TextBox. I am not able to get the Leave Event of the TextBox.

Should I use OnBlur event of the Html TextBox. Please Help.


How about using TextChanged server-side event and wrapping the whole thing in an UpdatePanel for very quick ajax functionality. If you use this method make sure the AutoPostBack property is set to true for the TextBox control.

0

精彩评论

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

关注公众号