I need to fire an event whe开发者_开发问答n a TextBox in ASP.NET has been defocused - I currently handle the TextChanged event for this, but this obviously doesn't fire if they don't type into the box and then defocus. Can I do this?
EDIT: To clarify, I want to fire a server side event - not client side
$('input').blur(function() {
if ($(this).val() == ''){
__doPostback('MyMethod')
}
});
protected void MyMethod()...
精彩评论