Why do we need both client side and server side validation
Add to List Share
Link for all dot net and sql server video tutorial playlists
Link for slides, code samples and text version of the video
In this video we will discuss, why we need both client side and server side validation. This is a common interview question as well. This is continuation to Part 1. Please watch Part 1 before proceeding.
1. Open Google Chrome browser
2. Click on the Customise button on the top right hand corner of the browser
3. Select Settings from the context menu
5. Click on "Content Settings" button
7. Close "Content Settings" window
In the application that we worked with in Part 1, comment the call to ValidatForm() method. This is the server side medthod that validates form input. At this point the code in btnSubmit_Click() method should be as shown below.
protected void btnSubmit_Click(object sender, EventArgs e)
So, at the moment
2. We don't have any server side validation
Run the application and click the Submit button, without filling any data. Notice that an empty row is inserted into Users table.
Client-side validation provides better user experience as it reduces the unnecessary round trips between the client and the server. So client side validation is nice to have.
Led Digital Marketing Efforts of Top 500 e-Retailers.
Worked with Top Brands at Leading Agencies.
Successfully Managed Over $50 million in Digital Ad Spend.
Developed Strategies and Processes that Enabled Brands to Grow During an Economic Downturn.
Taught Advanced Internet Marketing Strategies at the graduate level.
Your Cart 0
Manage research, learning and skills at defaultLogic. Create an account using LinkedIn or facebook to manage and organize your IT knowledge. defaultLogic works like a shopping cart for information -- helping you to save, discuss and share.