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. is asp.net validators are safe to use

is asp.net validators are safe to use

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmin
5 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.
  • M Offline
    M Offline
    Mogaambo
    wrote on last edited by
    #1

    Is asp.net validators are safe to use for validations, if yes then is there is need to validate on server side.

    C 1 Reply Last reply
    0
    • M Mogaambo

      Is asp.net validators are safe to use for validations, if yes then is there is need to validate on server side.

      C Offline
      C Offline
      Colwin
      wrote on last edited by
      #2

      Asp.net validators use javascript to validate input that your users type in. Both Ie and firefox allow the user to turn javascript off this is why it is always a good idea to validate all inputs from the user server side too. Trust but verify :-D

      M 1 Reply Last reply
      0
      • C Colwin

        Asp.net validators use javascript to validate input that your users type in. Both Ie and firefox allow the user to turn javascript off this is why it is always a good idea to validate all inputs from the user server side too. Trust but verify :-D

        M Offline
        M Offline
        Mogaambo
        wrote on last edited by
        #3

        Is all the asp.net validators are rendered as javascript, if yes then can any hacker hack the site, if the validations are done only using validators

        C C 2 Replies Last reply
        0
        • M Mogaambo

          Is all the asp.net validators are rendered as javascript, if yes then can any hacker hack the site, if the validations are done only using validators

          C Offline
          C Offline
          Colwin
          wrote on last edited by
          #4

          If i turn javascript off on my browser and then visit your page there will be no client side validation on my inputs. And if there is no server side validation then yes i may be able to perform SQL injection or other attacks on your website this is why server side validation is also very important and most definitely needed

          1 Reply Last reply
          0
          • M Mogaambo

            Is all the asp.net validators are rendered as javascript, if yes then can any hacker hack the site, if the validations are done only using validators

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            I recommend buying a book on web development. Any ASP.NET book will tell you you need to validate on the server. Why ? b/c a user can hack your script and turn client side validation off. Sure, it's nice to have it, but you should not trust anything you get from the client,

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            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