[ACCEPTED]-Is there a OnExit or Leave event on ASP.NET textbox?-asp.net

Accepted answer
Score: 14

The TextBox has an AutoPostBack property to cause a 3 postback when the user leaves the client-side 2 textbox. There you can use the TextChanged event to 1 call some serverside code.

Score: 1

What about the Textchanged Event of the Textbox? It is fired 2 when we input/change some text and then 1 leave the textbox.

Score: 0

This solution works for me:

    <asp:TextBox ID="txtPara" runat="server" AutoPostBack="True" 
OnTextChanged="txtPara_TextChanged" onblur ="myFunction()"></asp:TextBox>

        function myFunction() {

            __doPostBack("<%=txtPara%>", **txtPara_TextChanged**);



More Related questions