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. Range Validator

Range Validator

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 3 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.
  • J Offline
    J Offline
    janani13
    wrote on last edited by
    #1

    Hi all, I have a very basic doubt in validator controls.I have to get the input for User Name ranging for min 6 to max 50 .How can i use range validator to chek the above condition.

    A M 2 Replies Last reply
    0
    • J janani13

      Hi all, I have a very basic doubt in validator controls.I have to get the input for User Name ranging for min 6 to max 50 .How can i use range validator to chek the above condition.

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      Go 4 MSDN, http://msdn.microsoft.com/en-us/library/f70d09xt.aspx[^] :-D

      Arun Jacob http://codepronet.blogspot.com/

      1 Reply Last reply
      0
      • J janani13

        Hi all, I have a very basic doubt in validator controls.I have to get the input for User Name ranging for min 6 to max 50 .How can i use range validator to chek the above condition.

        M Offline
        M Offline
        Manas Bhardwaj
        wrote on last edited by
        #3

        anu_anu wrote:

        User Name ranging for min 6 to max 50 .

        User Name or Length of the user name?

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        J 1 Reply Last reply
        0
        • M Manas Bhardwaj

          anu_anu wrote:

          User Name ranging for min 6 to max 50 .

          User Name or Length of the user name?

          Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          J Offline
          J Offline
          janani13
          wrote on last edited by
          #4

          User name length..

          M J 2 Replies Last reply
          0
          • J janani13

            User name length..

            M Offline
            M Offline
            Manas Bhardwaj
            wrote on last edited by
            #5

            You can rather use a regular expression validator. This expression may be a good point to start.

            ^\d{6,50}$

            Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

            1 Reply Last reply
            0
            • J janani13

              User name length..

              J Offline
              J Offline
              janani13
              wrote on last edited by
              #6

              ok.. let me try that bhardwaj.

              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