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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Validator for not allow PO BOX number

Validator for not allow PO BOX number

Scheduled Pinned Locked Moved ASP.NET
6 Posts 2 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.
  • P Offline
    P Offline
    Panchal Hardik
    wrote on last edited by
    #1

    Hi, I need to Validator that not allow user to enter the PO box number in the Address field. Thanks !

    Hardik Panchal

    S 1 Reply Last reply
    0
    • P Panchal Hardik

      Hi, I need to Validator that not allow user to enter the PO box number in the Address field. Thanks !

      Hardik Panchal

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Do you need to have that validator at client side or server side . Write a custom validator for that ..... or you can have javascript function to check the length of textbox ... Why are you showing the PO box text box if you don't want that should be filled

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      P 1 Reply Last reply
      0
      • S Sandeep Akhare

        Do you need to have that validator at client side or server side . Write a custom validator for that ..... or you can have javascript function to check the length of textbox ... Why are you showing the PO box text box if you don't want that should be filled

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        P Offline
        P Offline
        Panchal Hardik
        wrote on last edited by
        #3

        Thanks, I need it at client side. I restrict to user to add po box in Address field. I try different validation but it not work. if u have then please give to me.

        Hardik Panchal

        S 1 Reply Last reply
        0
        • P Panchal Hardik

          Thanks, I need it at client side. I restrict to user to add po box in Address field. I try different validation but it not work. if u have then please give to me.

          Hardik Panchal

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Puting the javscript function that will validate the textbox but myfriend why are you showing that textbox to user ot make that textbox readonly do function checkContent() { var txtbx=document.getElementById('TxtboxId'); if(txtbx.length>0) { alert('Dont write anything in Po textbox'); } call this method in on button click event

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          P 1 Reply Last reply
          0
          • S Sandeep Akhare

            Puting the javscript function that will validate the textbox but myfriend why are you showing that textbox to user ot make that textbox readonly do function checkContent() { var txtbx=document.getElementById('TxtboxId'); if(txtbx.length>0) { alert('Dont write anything in Po textbox'); } call this method in on button click event

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            P Offline
            P Offline
            Panchal Hardik
            wrote on last edited by
            #5

            Thanks for ur reply. But you not understand my problem. I have one form in which user have to insert the shipping address. I have condition, we not ship at PO box number. There is a one text box where user have to insert their Address (street, Home number etc.) Now i have to validate this text box to enter the po box number by user. because some user may be enter po box number in address field. Thanks

            Hardik Panchal

            S 1 Reply Last reply
            0
            • P Panchal Hardik

              Thanks for ur reply. But you not understand my problem. I have one form in which user have to insert the shipping address. I have condition, we not ship at PO box number. There is a one text box where user have to insert their Address (street, Home number etc.) Now i have to validate this text box to enter the po box number by user. because some user may be enter po box number in address field. Thanks

              Hardik Panchal

              S Offline
              S Offline
              Sandeep Akhare
              wrote on last edited by
              #6

              Have got the solution for your validation

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              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