>>Are you sure the method is called OnKeyPress? I don't recall exactly, but AFAIK it's something else like OnKeyCode... (Don't have this book with me right now).
>
>Actually, both are working but used for different purposes. It turned out that the first time the page was accessed, it was not going into the code I thought it was. I adjusted the code. Now, it works.
I checked the book and there are two events: onkeyup and onchange.
If it's not broken, fix it until it is.
My Blog