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. textbox entry restrict

textbox entry restrict

Scheduled Pinned Locked Moved ASP.NET
tutorial
6 Posts 4 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.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    hai all, have a requirement to limit an entry into a textbox for the following only 3 digits to the right of the decimal and left is maximum like 12.234,345.213 etc how to set the property of a textbox,or any other code required. reply please am using vs2005. thanks in advance.

    kissy

    S V 2 Replies Last reply
    0
    • K Kissy16

      hai all, have a requirement to limit an entry into a textbox for the following only 3 digits to the right of the decimal and left is maximum like 12.234,345.213 etc how to set the property of a textbox,or any other code required. reply please am using vs2005. thanks in advance.

      kissy

      S Offline
      S Offline
      simsen
      wrote on last edited by
      #2

      Hi Kissy, Look at RegularExpressionValidator and CompareValidator [regular-expressions.info] Kind regards, simsen :-)

      K 1 Reply Last reply
      0
      • S simsen

        Hi Kissy, Look at RegularExpressionValidator and CompareValidator [regular-expressions.info] Kind regards, simsen :-)

        K Offline
        K Offline
        Kissy16
        wrote on last edited by
        #3

        thanks for ur answer. [-+]?([0-9]*\.[0-9]+|[0-9]+) can u modify the above expression as per my requirement? i want to add like 12.234 or 234.222 like this

        kissy

        E S 2 Replies Last reply
        0
        • K Kissy16

          thanks for ur answer. [-+]?([0-9]*\.[0-9]+|[0-9]+) can u modify the above expression as per my requirement? i want to add like 12.234 or 234.222 like this

          kissy

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          The person has given you a clue, maybe you should work some of it out on your owm.

          Deliver yesterday, code today, think tomorrow. "http://www.heuse.com/cphumor.htm"

          1 Reply Last reply
          0
          • K Kissy16

            thanks for ur answer. [-+]?([0-9]*\.[0-9]+|[0-9]+) can u modify the above expression as per my requirement? i want to add like 12.234 or 234.222 like this

            kissy

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

            Here is a hole bunch of examples - also what you need: [regexlib.com/DisplayPatterns.aspx]

            1 Reply Last reply
            0
            • K Kissy16

              hai all, have a requirement to limit an entry into a textbox for the following only 3 digits to the right of the decimal and left is maximum like 12.234,345.213 etc how to set the property of a textbox,or any other code required. reply please am using vs2005. thanks in advance.

              kissy

              V Offline
              V Offline
              Vengatachalapathy Palanivel
              wrote on last edited by
              #6

              Try validating the control using Javascript and regular expressions. Hope this helps you. Regards, Vengat P

              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