Validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugavelmsc
    New Member
    • Apr 2008
    • 54

    #1

    Validation

    Hi,

    in asp.net , validation control based on client side or server side

    thanks,
    murugavel
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by murugavelmsc
    Hi,

    in asp.net , validation control based on client side or server side

    thanks,
    murugavel
    It is best practice to validate on both the client and server side.
    Nathan

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by murugavelmsc
      Hi,

      in asp.net , validation control based on client side or server side

      thanks,
      murugavel
      There is no ASP.NET rule which says whether you must do validations at server side or at the client side.
      Most people will do both because client side validations are dependent on what the user is using as their browser and whether the Javascript (or JScript) used in the validations is supported. Users can also disable Javascript ...
      You may then ask why people don't just do away with client side validations altogether and stick to just server side validations. The reason is simply because when they do work, client side validations are faster (no repost to the server required).

      Comment

      Working...