GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP
Go To First  |  Previous Question  |  Next Question 
 ASP  |  Question 146 of 147    Print  
User Input Data Validation
Should user input data validation occur server-side or client-side? Why?


  
Total Answers and Comments: 2 Last Update: December 27, 2008     Asked by: motionbreaker 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Paul Brennan
 
Validation should be done BOTH on the client and on the server. This even includes validation that has already been done on the client, due to the risk of spoofing.

The only reason validation is first done on the client is to reduce the number of round trips between the client and the server.

Above answer was rated as good by the following members:
vmukkavi
October 19, 2008 13:56:44   #1  
ptharak Member Since: October 2008   Contribution: 6    

RE: User Input Data Validation

User input validation is Client side only because there is no need to Validate Serverside.
If get the values from DB then you need to validate Serverside


 
Is this answer useful? Yes | No
December 27, 2008 07:15:43   #2  
Paul Brennan Member Since: December 2008   Contribution: 2    

RE: User Input Data Validation
Validation should be done BOTH on the client and on the server. This even includes validation that has already been done on the client due to the risk of spoofing.

The only reason validation is first done on the client is to reduce the number of round trips between the client and the server.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

What is the program ID (ProgID) for ActiveX Data Objects in 2-tier and 3-tier database applications?
A. ADO B. RDODB C. ADODB D. RDS E. OLEDB  

A. Relational data via Jet. B. Local or SQL data via Jet. C. Relational data via ODBC. D. Non-relational data via DSN-less ODBC. E. All types of data via OLE DB.  
Latest Answer : E is the right answer. i.e. All types of data using OLEDB ...

It controls the information sent to the user. The various methods are: Response.Write – Sends information directly to a browser Response.Redirect – Directs a user to a URL other than the requested 
Latest Answer : Response object is a static object that will be created at each client's request. You can use this object to send output to the client ...

It stores information about a User’s session. Gives a notification when a user session begins or ends.  
Latest Answer : By using session object we can maintaing the state of the data which is helpful for maintaining the session(i.e to keep track of the information of the same client during the consecutive visits of the application)we can obtain the session object by using ...

A user accessing an application is known as a session.  

• SessionID – returns the session identification number for each user. • Timeout – sets the timeout period assigned to the Session object for any application, in minutes. • CodePage 
Latest Answer : There are four properties in Session Object.         1. CodePage         2. LCID         3. SessionID         4. ...

• Ad Rotator component – a way to manage advertisements on the web site. • Content Linker component – a technique to direct users through a set of pages on a web site by creating 
Latest Answer : Content RotatorThe ASP Content Rotator component creates a ContentRotator object that displays a different HTML content string each time a user enters or refreshes a page. A text file, called the Content Schedule File, includes the information about the ...

It lets you store and retrieve information in a flexible data structure. Each value or information stored in a Dictionary is associated with a key through which the information can be retrieved.  
Latest Answer : The data stored and reterieved the information in a dictonary, the data are reterieved from in dictonary using by key. ...

• Minimizes network traffic by limiting the need for the browser and server to talk to each other • Makes for quicker loading time since HTML pages are only downloaded • Allows to run programs 

• ASP executes code on the server side whereas the browser interprets HTML. • ASP can use any scripting languages • Gets feedback from the user and return information to the user • 


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape