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 is heap and what is stack?

1172


Do I have any control over the garbage collection algorithm?

1099


How to view a .NET assembly?

1077


Explain the difference between .net 2000 and .net 2005(features)? Which one is better?

1076


SAP Business One(this is intigrated tool of .net)

2283


How many types of generations are there in a garbage collector?

1030


What is a design pattern and what is it for?

1124


What are multicast delegates?

1128


Explain what is immutability, what is it for and how is it codified?

1167


What is garbage collection and how it works ?

1103


what will do to avoid prior case?

1123


What is Event Bubbling in .NET?

1172


Please explain what are an object and a class?

1023


When we use windows api in .net is it managed or unmanaged code?

1141


How to convert a .NET object into COM operabililty?

1137