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 are the namespace available in .net?
What is the difference between a debug and release build?
Please explain what is a delegate?
Explain the difference between public and static modifiers?
Explain Different kinds of methods?
What are data types in .NET?
Explain what are an object and a class?
Tell me what is serialization?
What is .net latest version?
What is a formatter in .net?
Which namespace is require to used XML in .NET?
What is a windows process in .net?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?
Explain something about WebService?
What are the different types of memory in .net?