Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET2.0
how to validate to accept only numbers and % symbol in asp.net..i am validating for discount in a text box...how to validate for it ,example it should be only in this format 69% ,it should not accept alphabets..please anyone help me know.
Posted 4-Jan-13 7:35am
Comments
aspnet_regiis -i at 4-Jan-13 12:37pm
   
Use numeric validator with '%' sign hardcoded into the label beside the textbox
Member 9581488 at 4-Jan-13 12:43pm
   
http://www.codeproject.com/Answers/520301/percentageplusvalidationplusinplusjavaplusscript-h#answer2
 
Dont post duplicate question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100