ASP.NET :: Can a textbox control's onblur/lostFocus event trigger a server-side event?
-
27-09-2019 - |
문제
I am trying to attach a server-side event to lookup the city/state for the user-entered zipcode in a field like the one below.
<asp:TextBox ID="TextZipcode" runat="server" CssClass="inputtext" Columns="10" MaxLength="10"></asp:TextBox>
Since there is no lost focus event to capture, has anyone had any luck getting this to work?
해결책
Sure, why not? Just attach a JavaScript handler and have it invoke an AJAX action.
제휴하지 않습니다 StackOverflow