Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. validation

validation

Scheduled Pinned Locked Moved ASP.NET
help
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    i have a textbox field , there i want to insert only the numeric values. i am using the RegularExpressionValidator / custom validator , there in the validation group i am writing [0-9] , but this is not working , after i insert the alphanumeric values, afterwards, it get postback Please help.

    Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

    P S N 3 Replies Last reply
    0
    • S Sonia Gupta

      i have a textbox field , there i want to insert only the numeric values. i am using the RegularExpressionValidator / custom validator , there in the validation group i am writing [0-9] , but this is not working , after i insert the alphanumeric values, afterwards, it get postback Please help.

      Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

      P Offline
      P Offline
      Piyush Vardhan Singh
      wrote on last edited by
      #2

      i think u use range validater and set type property integer and min. and max value

      Piyush Vardhan Singh

      J 1 Reply Last reply
      0
      • P Piyush Vardhan Singh

        i think u use range validater and set type property integer and min. and max value

        Piyush Vardhan Singh

        J Offline
        J Offline
        jagan123
        wrote on last edited by
        #3

        hi sonia u can use java script for this whic allows the user to enter the numerics only. in text box onkeypress u call this function function Validate_OnKeyPress(iKeyascii) { if(iKeyascii >= 48 && iKeyascii <= 57 ) { return true; } else { return false; } }

        S 1 Reply Last reply
        0
        • J jagan123

          hi sonia u can use java script for this whic allows the user to enter the numerics only. in text box onkeypress u call this function function Validate_OnKeyPress(iKeyascii) { if(iKeyascii >= 48 && iKeyascii <= 57 ) { return true; } else { return false; } }

          S Offline
          S Offline
          Sonia Gupta
          wrote on last edited by
          #4

          onkeypress is the funciton that i will add in the attribute of the textbox?

          Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

          1 Reply Last reply
          0
          • S Sonia Gupta

            i have a textbox field , there i want to insert only the numeric values. i am using the RegularExpressionValidator / custom validator , there in the validation group i am writing [0-9] , but this is not working , after i insert the alphanumeric values, afterwards, it get postback Please help.

            Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

            S Offline
            S Offline
            sulabh2020
            wrote on last edited by
            #5

            hey sonia here is solution for ur problem.. u must use RegularExpressionValidator Display="None" ErrorMessage="Postal Code - accepts only numeric digits." ValidationGroup="iaValidator" ValidationExpression="[0-9]*">

            Hello Forum Always be in touch to help about the topic ASP.NET

            P 1 Reply Last reply
            0
            • S sulabh2020

              hey sonia here is solution for ur problem.. u must use RegularExpressionValidator Display="None" ErrorMessage="Postal Code - accepts only numeric digits." ValidationGroup="iaValidator" ValidationExpression="[0-9]*">

              Hello Forum Always be in touch to help about the topic ASP.NET

              P Offline
              P Offline
              Piyush Vardhan Singh
              wrote on last edited by
              #6

              Thank u Boss U r rt

              Piyush Vardhan Singh

              1 Reply Last reply
              0
              • S Sonia Gupta

                i have a textbox field , there i want to insert only the numeric values. i am using the RegularExpressionValidator / custom validator , there in the validation group i am writing [0-9] , but this is not working , after i insert the alphanumeric values, afterwards, it get postback Please help.

                Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

                N Offline
                N Offline
                neerubee
                wrote on last edited by
                #7

                You can use Regular Expression validator for this. Try it!

                Thanks & Regards Niranjan

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups