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. Client side Javascript VS Server side vaoidation control in asp.net

Client side Javascript VS Server side vaoidation control in asp.net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-netvisual-studio
4 Posts 3 Posters 1 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
    JC KaNNaN
    wrote on last edited by
    #1

    Hi Friends.. I have doubt in validations. i want to use range validation in my page. so which one is best for checking range validation. either client side or server side validate controls.??? What is difference bw client side or server side validate controls??

    Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

    B A 2 Replies Last reply
    0
    • J JC KaNNaN

      Hi Friends.. I have doubt in validations. i want to use range validation in my page. so which one is best for checking range validation. either client side or server side validate controls.??? What is difference bw client side or server side validate controls??

      Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      KaNNaN.JC wrote:

      which one is best for checking range validation. either client side or server side validate controls.???

      Both Client side and server side validation must be there. Client side validation will help in better usability, because if user enters some wrong entry then you'll show the error message from client side itself.So there will be no postback. Server side is also required because say a user enters right entry from user interface but during posting the data to server some malicious user changed the entered value in some way, then in this case server side validation will be required.and wrong data would not be saved. Keep in mind, this will only take place when user enters right value from User Interface

      Cheers!! Brij My Blog:http://brijbhushan.wordpress.com
      Check my latest Article :ViewState - Various ways to reduce performance overhead

      1 Reply Last reply
      0
      • J JC KaNNaN

        Hi Friends.. I have doubt in validations. i want to use range validation in my page. so which one is best for checking range validation. either client side or server side validate controls.??? What is difference bw client side or server side validate controls??

        Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        KaNNaN.JC wrote:

        Hi Friends.. I have doubt in validations. i want to use range validation in my page. so which one is best for checking range validation. either client side or server side validate controls.??? What is difference bw client side or server side validate controls??

        If you are using any of the Client Side validation control, please make sure you are using Page.IsValidate at the server side. If some one disable the javascript of browse, client side validator will never works as this runs on Javascript. Page.IsValidate is ensure that each control validatation at server end. If use check

        If(Page.IsValidate)
        {
        // Validation all suceess
        }
        else
        {
        // Validation Fails
        }

        When you Check for Page.IsValidate, ASP.NET Call Validate() method for each and every control to ensure the validation pass, if one of them fails, it will return false. Hope this give you clear idea. Thanks !

        Cheers ! Abhijit Jana | MVP Visit My Blog Abhijit's World of .NET | Follow Me @ twitter | Disclaimer

        J 1 Reply Last reply
        0
        • A Abhijit Jana

          KaNNaN.JC wrote:

          Hi Friends.. I have doubt in validations. i want to use range validation in my page. so which one is best for checking range validation. either client side or server side validate controls.??? What is difference bw client side or server side validate controls??

          If you are using any of the Client Side validation control, please make sure you are using Page.IsValidate at the server side. If some one disable the javascript of browse, client side validator will never works as this runs on Javascript. Page.IsValidate is ensure that each control validatation at server end. If use check

          If(Page.IsValidate)
          {
          // Validation all suceess
          }
          else
          {
          // Validation Fails
          }

          When you Check for Page.IsValidate, ASP.NET Call Validate() method for each and every control to ensure the validation pass, if one of them fails, it will return false. Hope this give you clear idea. Thanks !

          Cheers ! Abhijit Jana | MVP Visit My Blog Abhijit's World of .NET | Follow Me @ twitter | Disclaimer

          J Offline
          J Offline
          JC KaNNaN
          wrote on last edited by
          #4

          Hi friends, thanks for ur reply... i have used both client side and as well as server side controls. my doubt is which one is fast... i think validation control is not required for is post back method.

          Yours, KaNNaN ----------------------------------------------------------------- "Success is When Ur Signature Becomes An Autograph"

          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