Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2003, 02:04 AM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Detect Number

Hello everybody, can any body tell me that how can I detect that users inputs number in the text field?
Please please help me in this regard

Zaeem Sherazi
__________________
Zaeem Sherazi
 
Old December 1st, 2003, 03:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

lngMyNumber = Request.Form("myTextField")
If Len(lngMyNumber) > 0 and isNumeric(lngMyNumber) then
   ' input is numeric
Else
   ' input is not numeric, or no input
End If

Cheers
Ken

Microsoft MVP - Windows Server (IIS)
www.adOpenStatic.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation For Phone Number and Mobile Number dhruthi.ram99 Javascript How-To 12 October 30th, 2011 07:24 AM
Detect associated label ysiline Access VBA 1 April 26th, 2006 07:16 AM
Detect Change jking SQL Language 2 May 27th, 2005 05:57 PM
Help detect error elania Beginning PHP 4 February 14th, 2005 09:55 PM
Flash detect Adam H-W Javascript 4 October 30th, 2003 08:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.