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 security policy levels in .Net
How we can achieve Connection pooling in .Net?
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 difference between static page and dynamic page?
Explain me what is a design pattern and what is it for?
How big is the datatype int in .net?
Explain memory-mapped files.
What are the differences between com architecture and.net architecture?
Describe session handling in a webform, how does it work and what are the limitations?
How is .net core cross platform?
Explain what is immutability, what is it for and how is it codified?
What is alias ? Is it used in .Net ?
What is 'Common Type System' (CTS) in .NET?
What is a metadata in .net?
What is the transport protocol you use to call a seb service soap?