O'Reilly logo

Building ASP.NET with Microsoft WebMatrix by Steve Lydford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  5

images

Forms and Validation

Until now, our server-side code has provided dynamic content but it also has been a one-way operation—we have only been concerned with presenting content to the user. In this chapter we will learn how to make our sites much more interactive by taking user input and performing operations based on it.

User input is commonly gathered through the use of HTML forms; we can interrogate the form contents using Razor code once the form has been submitted. When we have learned how to retrieve the data from the submitted form, we will look at ways of validating the data submitted by users, both to ensure that they ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required