for the textbox if i want to allow only numbers.what ever
the characters u enter it should not take.which event u used?
Answer Posted / anjaan
Three events are triggered when a key is pressed and
released:
keydown
keypress
keyup
The keydown event occurs when the key is pressed, followed
immediately by the keypress event. Then the keyup event is
generated when the key is released.
In order to understand the difference between keydown and
keypress, it is useful to understand the difference between
a "character" and a "key". A "key" is a physical button on
the computer's keyboard while a "character" is a symbol
typed by pressing a button. In theory, the keydown and
keyup events represent keys being pressed or released,
while the keypress event represents a character being typed.
Is This Answer Correct ? | 8 Yes | 10 No |
Post New Answer View All Answers
Explain the difference between the while and for loop. Provide a .net syntax for both loops?
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
What is reflection and what is it for?
Explain re-clarification of object based in .net?
What is the difference between .net and laravel?
Explain can 2 different applications use the same dll in gac at the same time?
What is SOAP? How you will do windows and forms authentication?
Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?
Do you know the difference between the stack and the heap?
What is the use com component in .net?
what is machine key error in .NET how can we solve it?
How do you trigger the paint event in system.drawing?
Explain is the jit an interpreter?
What is the difference between task and thread in .net?
What’s different between process and application in .net?