IT Community - Software Programming, Web Development and Technical Support

should validation occur server side or client side?why?

This is a discussion on should validation occur server side or client side?why? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, can any one tell,Validation occur server side or client side?why? Thanks, Prasath.K...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-18-2007, 06:42 AM
prasath prasath is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: Chennai
Posts: 173
prasath is on a distinguished road
Cool should validation occur server side or client side?why?

Hi,
can any one tell,Validation occur server side or client side?why?

Thanks,
Prasath.K

Last edited by prasath : 07-18-2007 at 06:45 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2007, 03:09 AM
Gopisoft Gopisoft is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 117
Gopisoft is on a distinguished road
Default Re: should validation occur server side or client side?why?

Mainly two type of information that need to be validated
1. Login Credentials (User Info)
2. Data
Credentials
Should be done on server side.
Username and password that will be checked against the data stored in database. So in that case no validation on client side because it is not secure

Data Validation
Should be done on both side
Because client side validation will prompt for specific and mandatory inputs and then server side validation of those data will check that its valid for the your specific purpose or its not malicious.

Client side validation boost up the Performance of the server,Since No Round trip and Less no of Erroneous Data enter into the Server.

The Main disadvantage is It is Insecure. every One can see the Coding using view source and alter and then Submit.

While Server Side Validation is More secure and supports a lot of Langauages
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client side JavaScript and and Server side Java Script sathian HTML, CSS and Javascript Coding Techniques 2 11-09-2007 10:30 PM
client side validation for checkBox using ServerControlButton itbarota HTML, CSS and Javascript Coding Techniques 1 09-26-2007 11:18 AM
difference between Client side JavaScript and and Server side Java Script? Sundaram HTML, CSS and Javascript Coding Techniques 1 09-05-2007 11:46 AM
what are the Best practices for side-by-side execution of Framework 1.0 and 1.1? kingmaker ASP and ASP.NET Programming 1 07-20-2007 04:41 AM
Diff between server and client side scripting Jeyaseelansarc PHP Programming 0 05-18-2007 05:24 AM


All times are GMT -7. The time now is 12:31 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0