O'Reilly logo

C#® Developer's Guide to ASP.NET, XML, and ADO.NET by Chris Kinsman, Jeffrey P. McManus

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

Creating Web Forms for Data Entry

Now that you have a sense of how to retrieve and manipulate data using ADO.NET, you'll need to have a strategy for building user interfaces in ASP.NET to access database functionality.

Like other Web-programming paradigms, the process of inserting or updating data through a Web browser typically involves constructing an HTML form that contains an array of input controls. The user inserts or changes values in the controls on the form and then submits the form to the Web server. The server passes the form contents to a script that then forms the actual data operation.

Listing 11.14 shows a simple example of an ASP.NET page that facilitates data entry.

Listing 11.14. Simple Data-Entry Form
 <% @Page language='c#' ...

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