Posted on: 10/14/2015 11:00:41 AM | Views : 1234

Hi,
I am using bar code reader, Reader reads the code, after reading it will hit enter, so the form was submitted. I need to prevent that using onclientclick event
<asp:Button ID="btnSubmit" runat="server" Text="Save & Print" OnClick="btnSubmit_Click" OnClientClick="return preventMultipleSubmissions();" /> <script type="text/javascript"> var isSubmitted = false; function preventMultipleSubmissions() { //Here I have check hitting enter key if (event.keyCode == 13) { return false; } else { //Here Page Validation Controls if (Page_ClientValidate()) { //Here Avoid multiple submission if (!isSubmitted) { $('#<%=btnSubm ...

Go to the complete details ...