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
javascripthelptutorial
3 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.
  • D Offline
    D Offline
    david boon
    wrote on last edited by
    #1

    hi, i have a txtbox for getting phone no. it should accept only numerics.if character is entered it should display error msg. how to achieve in javascript. plz send me code and explain me detailly as i dont know javascript

    V S 2 Replies Last reply
    0
    • D david boon

      hi, i have a txtbox for getting phone no. it should accept only numerics.if character is entered it should display error msg. how to achieve in javascript. plz send me code and explain me detailly as i dont know javascript

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      David Boon, Check out http://www.smartwebby.com/DHTML/phone_no_validation.asp[^] Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
      http://deepakvasudevan.blogspot.com/
      http://deepak.blogdrive.com/

      1 Reply Last reply
      0
      • D david boon

        hi, i have a txtbox for getting phone no. it should accept only numerics.if character is entered it should display error msg. how to achieve in javascript. plz send me code and explain me detailly as i dont know javascript

        S Offline
        S Offline
        Shiby
        wrote on last edited by
        #3

        You can archieve this functionality by two ways... a) Using normal validation in javascript b) If you are using ASP.Net, then can use validation control i.e RegularExpressionValidator. Regards, Shiby

        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