Html reset button is called when esc button is clicked. how can i avoid it?
-
Hi, i have developed an asp.net application.In that application i am getting the user information.i have 2 button,one web control[ok button] and anpother html control [reset button].While entering the user information,when i press esc button it is calling reset button and all the fields values are resetted. how can avoid this problem? i have seen this problem in many of the sities.[Example - Rediff.com while creating new user] Any ideas? Thankz in advance. With Regards [S.P.Saravanan]
-
Hi, i have developed an asp.net application.In that application i am getting the user information.i have 2 button,one web control[ok button] and anpother html control [reset button].While entering the user information,when i press esc button it is calling reset button and all the fields values are resetted. how can avoid this problem? i have seen this problem in many of the sities.[Example - Rediff.com while creating new user] Any ideas? Thankz in advance. With Regards [S.P.Saravanan]
It is by design. You may like to handle keypress and if event.keyCode is 27 (ESC), then null it and return false. Vasudevan Deepak Kumar Personal Homepage namespace LavanyaDeepak
Personal Weblog
The World of Deepak and Lavanya
ViewPoint 24x7