Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you do validations. Whether client-side or
server-side validations are better ?

Answer Posted / abhishek kumar

Server side validation is always better option to have
safe side due to the following resons.

i) Client side script is always a security risk and in many
case it is not allowed, and for the same reason JavaScript
that is behind nearly all client side validation could be
turned off in web browser.

ii) Validation that requires a database only server side
validation is better option.

iii) Keeping all validation code at one place.

To minimise trips that user has to face in the case of
server-side validation it will be better option to validate
all input fields at once when they are submitted to server
and returning back a single error message for all invalid
entries.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why session is more secure than cookies?

913


How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?

2033


How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

960


Which is faster union or union all?

1014


Can you explain autopostback?

995


How can we prepairing Interview

2347


Define view state.

948


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

954


How do you change the session time-out value?

1066


What is httpresponse?

983


How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

987


What are the Difference between asp.net and asp ?

1165


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

1041


What is the purpose of App_Code folder in ASP.NET? Why we this?

1272


To get the values in two different controls to match which control you use it?

1059