Hi vijay,
Here i did't press any button or menu on screen and not enter Enter key through keyboard.
And my doubt is how the screen got refreshed?
Code behind the button get active and deactivate is might be that you have provided.
But how this code got invokedwhile i just typing in the input field.
Regards
Sreekanth