function onEnterPostBack(oId, e) { var keyCode = e.which ? e.which : e.keyCode; if (keyCode == 13) { emulePostBack(oId); return false; } }