One, that I call, issue with ASP.NET is that by utilizing multiple buttons on
a form , and there is only one submit allowed (posting back to itself), the
enter key will "click" the first button in tab order.
I create mulitple buttons on my forms to process different results so I have
come to grips with disabling the enter key all together until the next
revision of .NET (I thought I heard that this would be addressed).
Using in the head area of each page with multiple buttons:
<Script language=javascript>
document.onkeydown = doKey;
function doKey(e) {
if (event.keyCode==13)return false;
}
</script>
or the MS article discussing a work around:
http://support.microsoft.com/default...b;en-us;813822
I'm using showModalDialogs, so make sure you also add this to the header:
<base target="_self">
<meta http-equiv="Pragma" content="no-cache">
"Suresh" wrote:
Hi,
I have a button and on click i am calling a script function to invoke a
dialog argument.
btnPopup.attributes.add("OnClick","showpopup();ret urn false;")
Now the problem is that when i press "enter key" in my page(any where in my
parent page) i get my dialog window.
how to get rid of this. Is there any other thing i need to write.
Thanks in advance.
V Suresh