Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what user controls are and what server controls are and the differences between the two.

2032


How will you do redo and undo in textbox control?

1047


Explain the difference between the stack and the heap?

969


Explain what are the deferred execution and the immediate execution in linq?

1045


Tell me what is a “jagged array”?

1040


The project which you have made, which methodology did you use?

1051


what is the keyword used for self reference?

2399


Explain about the features and elements present in Visual studio.NET IDE?

1068


Explain what inheritance is, and why it's important?

972


What is delegation in .net?

1075


Is it true that objects don't always get destroyed immediately when the last reference goes away?

1008


Explain the process of serialization in .NET?

1092


What is misl?

1038


Explain the difference between managed and unmanaged code?

908


How to debug failed assembly binds?

1037