| There are a number of controls on this site that allow you to force a text box's input to be numeric only, upper or lower case only, or so on. They are all good, but they may be more than you need. Often, all you want to do is limit a text box to numeric input (between 0 - 9). If so, you can add this one line to the text box's keypress event. If you need more sophistication (e.g., allowing for decimals, currency symbols, etc.), search the site for the above-mentioned controls. 'Add to any text box's KeyPress Event. If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 |
Force a Text Box to Accept Numeric Input Only |
Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design