CHAPTER 30

image

Forms and Request Validation

HTML form elements are at the heart of most web applications because they provide the means by which the user submits data and changes the application state. Form data can be submitted by an HTML form element or by an Ajax request (which we describe in Part 4). In this chapter, we look at how ASP.NET deals with the form element and how data submitted by the user is validated to ensure that it won’t subvert the application—a process known as request validation. Although we are focused on the standard non-Ajax way of submitting forms, most of the content in this chapter is equally applicable to Ajax requests. ...

Get Pro ASP.NET 4.5 in C#, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.