I have asp.net application and have button which is implemented on the server side.
<asp:TextBox ID="txtObject" onfocus="this.select();" runat="server" AutoPostBack="True" CssClass="form-control"></asp:TextBox>
I would like to fire this textbox just when user click ENTER key = 13, for now I used the method onchange "txtObject_TextChanged" as it is the only option i have in asp.net.
The issue I have is if I change anything in the textbox it postback and I would like to postback just when I press enter in the textbox.
I also tried to setup the AutoPostBack to false and It didn't worked for me as if you set it to false the enter key will not work as well.
please any suggestions.