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
what user controls are and what server controls are and the differences between the two.
How will you do redo and undo in textbox control?
Explain the difference between the stack and the heap?
Explain what are the deferred execution and the immediate execution in linq?
Tell me what is a “jagged array”?
The project which you have made, which methodology did you use?
what is the keyword used for self reference?
Explain about the features and elements present in Visual studio.NET IDE?
Explain what inheritance is, and why it's important?
What is delegation in .net?
Is it true that objects don't always get destroyed immediately when the last reference goes away?
Explain the process of serialization in .NET?
What is misl?
Explain the difference between managed and unmanaged code?
How to debug failed assembly binds?