CHAPTER 13

image

Input Validation

Regardless of the application type, input validation is a very important topic if the application accepts user inputs. As developers, we tend to assume that every user input is evil and they should be validated before being processed. Checking whether an input field is empty or not, validating the length of an input value, and comparing two inputs against each other according to a specific logic—these are just some of the common validation checks.

This chapter will explain how ASP.NET Web API simplifies this process by offering out-of-the-box solutions and how its built-in implementations can be extended to customize ...

Get Pro ASP.NET Web API: HTTP Web Services in ASP.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.