O'Reilly logo

Programming Microsoft® ASP.NET 2.0 Core Reference, 2nd Edition by Dino Esposito

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

Chapter 5. Working with the Page

Although formless pages are still accepted and correctly handled, the typical ASP.NET page contains a single <form> tag decorated with the runat attribute set to server. On the server, the <form> tag is mapped to an instance of the HtmlForm class. The HtmlForm class acts as the outermost container of all server controls and wraps them in an HTML <form> element when the page is rendered. The obtained HTML form posts to the same page URL and for this reason is said to be reentrant. The default method used to submit form data is POST, but GET can be used as well.

In most cases, the server form is the outermost ...

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