ASP.NET Basics (Part 7): Command and Control
(Page 1 of 7 )

One of the things ASP.NET is particularly good at, is handling user input through Web-based forms. In this article, begin applying the theory you've learned to Web development, with a discussion of how to dynamically generate forms using ASP.NET's server controls, and process the data entered into them with the Request object.Last time out, I gave you a crash course in better software design, by showing you how to abstract parts of your C# code into reusable functions. You've already learned how to add flexibility to your functions by allowing them to accept different arguments, and how to obtain one (or more) return values from them. You also know a little bit more about variable scope, and have a better understanding of how C# treats variables inside and outside functions.
Enough theory then - let's get into something practical. Over the course of this article, I'm going to initiate you into using ASP.NET in your Web development, by showing you how the technology can be used in one of the most common applications of a Web development language - form input. Throughout the following pages, I'm going to devote lots of space to a discussion of how ASP.NET can be used to extract and use data from HTML forms, and how it can be used to programmatically generate forms using so-called "server controls", which let you build everything from simple text fields to drop-downs and check boxes.
Next: The Last Action Hero >>
More ASP.NET Articles
More By Harish Kamath (c) Melonfire