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

Is .net core installed?

1050


Explain what is the difference between constants and read-only variables?

960


Explain the difference between static page and dynamic page?

984


Is .net a compiler?

1067


What is typical about a windows process in regards to memory allocation in .net?

1039


What is stored procedure ? how we use it in .NET ?

1094


What are the types of assemblies in .net?

1106


What is the difference between odbc and ado?

1213


What is the transport protocol you use to call a seb service soap?

997


What is msil, il?

1076


Tell us what is the difference between struct and class?

1144


I'm having some trouble with cas. How can I troubleshoot the problem?

1016


What is the use of activex control in .net?

1060


How will you load dynamic assembly? How will create assemblies at run time?

2137


How to prepare parametrized (with more than one parameters) crystal report. Please tell me the code procedure, if any body can?

967