Dissecting Web Forms
In an ASP.NET Web page, collecting user input is much simpler than the techniques discussed in the previous section. In order to collect user input, the ASP.NET Web page must contain a Web form. A Web form is an HTML control that has the syntax
<form runat="server"> ... </form>
Recall that HTML controls are processed just like Web controls. Each available HTML control has a corresponding class in the .NET Framework. When an ASP.NET Web page is requested, the ASP.NET engine creates an object for each HTML control in the ASP.NET Web page's HTML section. These HTML controls can be programmatically referenced in the source code portion of the ASP.NET Web page. The ASP.NET engine calls the HTML control's RenderControl() method, ...
Get SAMS Teach Yourself ASP.NET in 24 Hours 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.