Here is some sample code on how to capture the enter key on a textbox in ASP.NET. I am posting this because I use it a lot.
function KeyDownHandler() {
if (event.keyCode == 13) {
event.returnValue = false;
event.cancel = true;
document.getElementById(‘cphmainContent_C008_LoginButton’).click();
}
}
Then add this to your textobox:
onkeydown=”KeyDownHandler();”