Control Panel
Forum
Hosting Help
ASP.NET 4 & SQL 2008 R2 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
AdSense revenue sharing sites
|
Exam 70-680 Practice Tests
|
Silverlight games
Total
members
:
210362
Average new registrations per day (in last 7 days):
16
New Registration:
Open
Register Now
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
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.