Control Panel
Forum
Hosting Help
ASP.NET 4 & SQL 2008 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Silverlight Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
149203
Average new registrations per day (in last 7 days):
122
New Registration:
Open
Register Now
Learn Windows 7:
Optimize your Computer with Registry Mechanic
Registry Mechanic is the most popular registry cleaner which can be used for fixing the registry errors. In this article, I have given some information about the Registry Mechanic which is the most popular registry cleaner.
Want to become a DBA ?
SQL Server 2008 training courses
- by AspSpider team
Home
»
Resources
»
Validation Numeric text box and letters text box using java script
ASP.NET
ADO.NET
Web Services
Remoting
Visual Studio 2005
Error Bank
Interview Questions
Tips & Tricks
XML
HTML
Jscript/Javascript
IIS
Windows
General
Submit Resource or code snippet
... and get
surprise gifts
Win Digital camera, ASP.NET Books, Free softwares!!
Validation Numeric text box and letters text box using java script
03 Dec, 2009
Author:
ahmed mohamed magdi
http://aspspider.info/ahmedcoeur
wint
Summary
Validation Numeric text box and letters text box using java script
.NET Classes used :
none
just copy and paste the follwing code in the HTML page
then add the follwing code to the form load event
Me.txt_Numbers.Attributes.Add(onkeypress, return isNumberKey(event))
-
or the follwing code for the letters textboxes
-
-
then add the follwing code to the form load event
Me.txt_Letters.Attributes.Add(onkeypress, return isNumberKey(event))
-
Please note the u can post it inside if condetion for the ispostback like
if not isPostBack Then
Me.txt_Letters.Attributes.Add(onkeypress, return isNumberKey(event))
Me.txt_Numbers.Attributes.Add(onkeypress, return isNumberKey(event))
end if
and it will work just fine
Feedbacks about this page from members:
- No Feedbacks yet !! -
Submit Feedback
View All Feedbacks
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.