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



Where can I find out more about WML and WAP?


There are quite a few resources online for you to learn more about these two technologies. For a discussion of what exactly those resources are, check out these links:



For a central repository of links, check out this great resource: 

Is a card the same thing as a mobile page?


In wireless communications technology, a card is a unit that can be displayed on a single screen. Therefore, a card is analogous to a mobile Web form. A deck, or set of cards, is analogous to a mobile page.


Are there compatibility issues between ASP.NET and mobile Web forms?


Unfortunately, yes, although there are only a few. The first is that mobile pages do not support user controls files with the .ascx extension. The second is the use of error pages. With ASP.NET, if an error occurs in the application, the user receives a fairly detailed error page along with a description of the error. Mobile devices often aren't able to display such a complex UI, although they do try. You might want to set up your own custom error pages by using the customErrors element in your web.config file:

 <customErrors defaultredirect="errors.aspx" mode="on" /> 

Use mobile server controls in this custom error page to ensure that the message is properly displayed on the device.

Similarly, the page-level tracing feature, which causes additional HTML to be tacked on the end of your ASP.NET pages when viewed, might cause problems in a mobile device. Use application-level tracing instead if necessary.

Finally, keep in mind that many mobile devices do not support cookies. Try not to rely too much on cookies in your mobile applications, and if you're using session state, configure your application to use cookieless sessions.


    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 © 2008-2017.
    If you may any questions please contact us: