Summary

IOTA^_^    

Sams Teach Yourself ASP.NET in 21 Days, Second Edition
By Chris Payne
Table of Contents
Bonus Day 23.  Creating Mobile Web Forms


Today you took a quick overview of developing pages for mobile devices. Because much of today's topic is so similar to the concepts you've covered in ASP.NET, the discussion breezed through this topic rather quickly.

The first thing you must do is download the Mobile Web SDK from Microsoft at http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true. After you have it correctly installed, developing pages is a snap because you are already familiar with ASP.NET.

Each mobile page can consist of one or more mobile Web forms, which in turn consists of mobile server controls. All these elements are similar to their counterparts in ASP.NET, with many of the same properties and methods. A notable exception is that there can be many mobile forms to one mobile page, which allows you to creatively present different output to clients depending on their interactions.

There are quite a few mobile server controls, including the List and Label controls that were examined today. Many of these controls take into account the fact that mobile devices have smaller screens and less power than PCs, and render output accordingly, by providing features such as internal pagination.

Finally, you can use the <DeviceSelect> and <Choice> elements to selectively render different output depending on the device being used. These elements make use of the mobile capabilities supplied by the mobile devices to display content. You can specify the content to render in the <Choice> element itself using the value property, or you can use templates to provide more fine-tuned layout capabilities.


    IOTA^_^    
    Top


    Sams Teach Yourself ASP. NET in 21 Days
    Sams Teach Yourself ASP.NET in 21 Days (2nd Edition)
    ISBN: 0672324458
    EAN: 2147483647
    Year: 2003
    Pages: 307
    Authors: Chris Payne

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net