Click here to Skip to main content
15,897,179 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
I wanna make such type of function, like when I press the key (a/b/c...etc) in the textbox, then it will saved in the database without using any (button or enter key). I mean to say it the displaying keys are automatically saved in the database without using of any button/enter key.
Posted
Updated 21-Feb-12 2:31am
v2
Comments
OriginalGriff 21-Feb-12 8:28am    
And?
What is the problem?
What have your tried?
Use the "Improve question" widget to edit your question and provide better information.
krumia 21-Feb-12 9:59am    
I don't think this is a good idea (saving data on keypress event). What exactly do you want to do? Think if there is a better way of doing this.

Hi, Use ajax functionality and call JS call back function on keypress or keyup event of text box.
 
Share this answer
 
Comments
PJS88ABC 23-Feb-12 0:34am    
Please give me a bit explanation. Thank you.
Sarvesh Kumar Gupta 23-Feb-12 1:02am    
Hi,call js function and calling ajax function it return result set to call back function, ajax function is used to be insert data in DB and in return it will give success or not output.

You can also use ajaxpro.dll for this.
If you are working on windows application then you can handle key press event of control and write code to save data
 
Share this answer
 
Comments
PJS88ABC 23-Feb-12 0:33am    
Sorry, I am not working on windows application. I am working on web application.
Please give me more suggestions.

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