I have a form where users scan in a barcode, the barcode reader automatically enters a carriage return in the value causing the form to submit since the browser chooses the
handle the onkeypress event and do something like this
if (e.KeyChar == (char)Keys.Enter) { // set event handled e.Handled = true; }