Click here to Skip to main content
12,360,588 members (57,651 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET2
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 6:35am
Comments
aspnet_regiis -i 4-Jan-13 12:37pm
   
Use numeric validator with '%' sign hardcoded into the label beside the textbox
Member 9581488 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 4 Jan 2013
Copyright © CodeProject, 1999-2016
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