Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi
I am developing website,in one form i will add deparment using client side click event (OnClientClick) this event call javascript,in that javascript i will pass values to class file in that class file i will insert department into access database,if i click button with mouse cursor it will add,if i just hit enter key button first time it will add,but next time i not add data,the same code when i run using chrome or mozilla,if hit Enter key from keyboard n times it will add data.

Why in ie8,ie9 not add when hit enter key from keyboard,but if i run from chrome or mozilla it will add data.
Note: i am already used onkeypress event in department textbox.

Regards
Aravind
Posted
Updated 23-Apr-14 22:34pm
v2
Comments
Sunasara Imdadhusen 26-Apr-14 6:30am    
Can you please provide code snippet for the same. I think for IE you have to set focus on button or make button to default.
Aravindba 27-Apr-14 21:03pm    
make button to default means ? if set focus for button if i click textbox then it focus is clear.my need is aftter enter department in text just user hit enter button,i cant write any code in textbox keypress event,bcz in mozila and chrome handle 2 times ,bca in button onclick evenet i will write insert query using web service,so it will take web service and also keypress event also.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900