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. validate textbox

validate textbox

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
5 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.
  • J Offline
    J Offline
    jashimu
    wrote on last edited by
    #1

    Hi all, I need help validating textBox whether the user input was a correct date format and not empty. I can use RequiredFieldValidator to make sure the textbox is not empty but how do I know is correct date format which support my database.thanks,

    N P 2 Replies Last reply
    0
    • J jashimu

      Hi all, I need help validating textBox whether the user input was a correct date format and not empty. I can use RequiredFieldValidator to make sure the textbox is not empty but how do I know is correct date format which support my database.thanks,

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Why not use a calendar control rather than a textbox? The date will already be formatted.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • J jashimu

        Hi all, I need help validating textBox whether the user input was a correct date format and not empty. I can use RequiredFieldValidator to make sure the textbox is not empty but how do I know is correct date format which support my database.thanks,

        P Offline
        P Offline
        Prasanta_Prince
        wrote on last edited by
        #3

        Hope this can help you.

        J 1 Reply Last reply
        0
        • P Prasanta_Prince

          Hope this can help you.

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

          thanks much for you help. Please can you put the code in different format so that I can see it. I can't see all the code. thanks again.

          A 1 Reply Last reply
          0
          • J jashimu

            thanks much for you help. Please can you put the code in different format so that I can see it. I can't see all the code. thanks again.

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #5

            Copy/paste to Notepad.

            [

            S<T>::f(U) // Out of line.

            ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

            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