Input Boxes for Numbers
Written by Eric Smith, Northstar Computer Systems LLC
A question I received recently asked what sort of form control he should use for accepting numeric data on a form. His confusion was in the fact that the HTML tag uses INPUT TYPE=TEXT. For an HTML form, the only way to allow freeform entry of information is either a text box (TYPE=TEXT) or a text area (TEXTAREA tag). When you read the data through ASP, the Request object will return everything as text. You'll need to use the various numeric conversion functions, such as CInt or CDbl to convert the text field to a numeric variable.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 2/10/2001
|