O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

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

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 ...

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