Mobile Web Forms

Mobile Web Forms differ from the standard Web Forms mainly in their implementation. The usage is very similar. The main difference is in the capability to render the controls differently when devices with different capabilities access the forms. In this section, you will learn the basics of creating a mobile Web page.

Note

Standard Web Forms are covered in this book in Chapter 11, “WebForms,” and in Chapter 12, “Web Form Data Validation.”

Simple Form

The best place to start is with a simple Hello World page. Listing 20.1 shows what a minimal mobile Web page looks like.

Listing 20.1. A Mobile Device Hello World Page
 <%@ Register TagPrefix=”Mobile” Namespace=”System.Web.UI.MobileControls” Assembly=”System.Web.Mobile”%> <%@ Page ...

Get Special Edition Using® Microsoft® ASP.NET 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.