concept scratch in category asp.net

appears as: scratch
ASP.NET 4.0 in Practice

This is an excerpt from Manning's book ASP.NET 4.0 in Practice.

Form validation is just another pain that web developers need to address. The average user isn’t happy when he has to re-enter data into a form from scratch because he forgot to include a seemingly trivial piece of data, like a ZIP code. When the user makes a mistake and has to re-enter something, he expects to see the data he already entered on the form. This expectation probably derives from the classic Windows application, where, obviously, you have true state support.

Figure 2.6. The first form of the Visual Studio wizard lets you choose to create a model from a database (first option) or from scratch (second option).

Rather than starting from scratch, it might be worth leveraging all those DefaultModelBinder built-in features. What we’re going to do is build a PostModelBinder that inherits from DefaultModelBinder and customizes its BindModel method, as in the next listing.