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. General Programming
  3. Visual Basic
  4. Web form text control field length and format

Web form text control field length and format

Scheduled Pinned Locked Moved Visual Basic
databasesecurityhelptutorialquestion
3 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.
  • J Offline
    J Offline
    jr1214
    wrote on last edited by
    #1

    I cannot see where the validator controls allow me to validate a string length. I can enter too many characters in the control and the results cause my sql to hit the 'Catch' ....also having a hard time finding reference to formatting strings like social security numbers, phone numbers and etc. Date is handled with the date options well but can't seem to comprehend how to do a custom format of a string?? All help appreciated. JohnR

    S 1 Reply Last reply
    0
    • J jr1214

      I cannot see where the validator controls allow me to validate a string length. I can enter too many characters in the control and the results cause my sql to hit the 'Catch' ....also having a hard time finding reference to formatting strings like social security numbers, phone numbers and etc. Date is handled with the date options well but can't seem to comprehend how to do a custom format of a string?? All help appreciated. JohnR

      S Offline
      S Offline
      Syed Abdul Khader
      wrote on last edited by
      #2

      You can use the MaxLength property of TextBox in addition to the Validation Controls.

      J 1 Reply Last reply
      0
      • S Syed Abdul Khader

        You can use the MaxLength property of TextBox in addition to the Validation Controls.

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

        Thanks for the heads up on the maxlength, any help on the formatting. I have seen references to the maskededit.control, string.format and cannot seem to find an easy way to display format, without parseing the string, nor create an input mask. All help appreciated. JohnR

        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