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

Answer Posted / sudhir sheoran

Validation can be done at server side as well as
client side.

Client side validations :-
1) are of great use with the enhancement of
java scripts.
2) Performance booster as validation is done at client side.
3) security issues are there in client side validation.
4) So should be used for simple operations like
user input validations e.g valid name,valid date range,
valid phone number,email etc,where security is of not
that much concern.

Server Side validation(SSV):
1) Some validations can be done at server side only
e.g whether a email exists in database or not.
2) Decreases performance because of more trips to server
3) When security is a concern SSV should be used.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is oauth for authentication or authorization?

586


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1592


What are the event handlers that we can have in global.asax file?

532


Explain the significance of routing? : asp.net mvc

536


What is the purpose of using MVC programming pattern in ASP.NET?

553






Why is it preferred to not use finalize for clean up?

558


What is the difference between GridView and Repeater controls in ASP.NET?

575


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

1373


What is cached data phone?

526


Can user control be stored in library?

515


What is viewstate in asp net with example?

525


Is it possible to apply themes to an asp.net application? If yes, then how?

575


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

595


Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?

2271


What does occur first in ASP.Net, Authentication or Authorization?

560