I have a textbox using [OnTextChange] event (VB.NET), and have to use [AutoPostBack="True"] to check itself value from DB:
<asp:TextBox ID="Item1" TabIndex="7" runat="server" AutoPostBack="True"></asp:TextBox>
Scenario is:
- Inputs anything on textbox and not yet focus out of textbox.
- Click any button in same form of that textbox.
Unwanted Result:
- Event [On Click] of that button has been canceled, only OnTextChange event fired.
- Have to click on that button again.
Wanted Result:
- Event [On Click] of button will be fire after event OnTextChanged fired
I searched around google and known that's an issue with .NET event. But still doesn't findout any helpful solution.
Please help.
If you are writing a web application, there is a property for TextBoxes CaseValidation, you can use it, or You can use text validation inside button click function than in textchanged property