[ACCEPTED]-Is there a OnExit or Leave event on ASP.NET textbox?-asp.net
Accepted answer
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.
What about the Textchanged Event
of the Textbox? It is fired 2 when we input/change some text and then 1 leave the textbox.
This solution works for me:
<asp:TextBox ID="txtPara" runat="server" AutoPostBack="True"
OnTextChanged="txtPara_TextChanged" onblur ="myFunction()"></asp:TextBox>
<script>
function myFunction() {
__doPostBack("<%=txtPara%>", **txtPara_TextChanged**);
}</script>
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.