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. validation

validation

Scheduled Pinned Locked Moved ASP.NET
csharphelpjavascriptasp-netjson
8 Posts 6 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.
  • K Offline
    K Offline
    komalcse
    wrote on last edited by
    #1

    Hi, i am using Asp.net with C# i want a javascript to validate: the first letter should be character and rest can be numeric or special charaters. its necessary that first letter should be character(A-Za-z) if its not a charater,should display the error message can anyone help me plzzz its very urgent thanks a lot, komal

    M L P V P 5 Replies Last reply
    0
    • K komalcse

      Hi, i am using Asp.net with C# i want a javascript to validate: the first letter should be character and rest can be numeric or special charaters. its necessary that first letter should be character(A-Za-z) if its not a charater,should display the error message can anyone help me plzzz its very urgent thanks a lot, komal

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      1. Javascript substring()[^] to cut off the first character of your string. 2. Use the regular expression or find Javascript IsChar() or IsString()[^] to check whether the first character is a character or not.. Hope it helps.

      komalcse wrote:

      its very urgent

      Please please DON'T use this word "urgent".

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      K 1 Reply Last reply
      0
      • K komalcse

        Hi, i am using Asp.net with C# i want a javascript to validate: the first letter should be character and rest can be numeric or special charaters. its necessary that first letter should be character(A-Za-z) if its not a charater,should display the error message can anyone help me plzzz its very urgent thanks a lot, komal

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hi, Try using a regularexpressionvalidator on your form instead.

        K 1 Reply Last reply
        0
        • M Michael Sync

          1. Javascript substring()[^] to cut off the first character of your string. 2. Use the regular expression or find Javascript IsChar() or IsString()[^] to check whether the first character is a character or not.. Hope it helps.

          komalcse wrote:

          its very urgent

          Please please DON'T use this word "urgent".

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          K Offline
          K Offline
          komalcse
          wrote on last edited by
          #4

          am sorry i dont know how to use could you plz helpme out with this script. i have a textbox where i have to do this validation i have no idea about javascript thanks in advance, komal

          1 Reply Last reply
          0
          • L Lost User

            Hi, Try using a regularexpressionvalidator on your form instead.

            K Offline
            K Offline
            komalcse
            wrote on last edited by
            #5

            can u help me out with an example

            1 Reply Last reply
            0
            • K komalcse

              Hi, i am using Asp.net with C# i want a javascript to validate: the first letter should be character and rest can be numeric or special charaters. its necessary that first letter should be character(A-Za-z) if its not a charater,should display the error message can anyone help me plzzz its very urgent thanks a lot, komal

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              It seems that you want somebody to write this code for you. That's not the way this site works - try rentacoder instead. BTW - don't rely on javascript alone to validate the text, use a combination of server and client side validation.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              1 Reply Last reply
              0
              • K komalcse

                Hi, i am using Asp.net with C# i want a javascript to validate: the first letter should be character and rest can be numeric or special charaters. its necessary that first letter should be character(A-Za-z) if its not a charater,should display the error message can anyone help me plzzz its very urgent thanks a lot, komal

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

                komalcse wrote:

                can anyone help me plzzz

                These words are considered rude here. First read the forum posting guidelines outlined here: http://www.codeproject.com/KB/scrapbook/ForumGuidelines.aspx[^]

                komalcse wrote:

                its very urgent

                You may then need to contact RentACoder or ELance.

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                1 Reply Last reply
                0
                • K komalcse

                  Hi, i am using Asp.net with C# i want a javascript to validate: the first letter should be character and rest can be numeric or special charaters. its necessary that first letter should be character(A-Za-z) if its not a charater,should display the error message can anyone help me plzzz its very urgent thanks a lot, komal

                  P Offline
                  P Offline
                  Paul Conrad
                  wrote on last edited by
                  #8

                  komalcse wrote:

                  its very urgent

                  That is down right rude.

                  "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                  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