MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director
Agenda A Single URL for desktop and mobile Securing your application Template Customization Displaying Images Storing Dynamic Data Setting Client Focus Using Softkeys Optimize the UI
Redirection Business Logic Data Store Presentation Layer Business Objects Mobile UI Desktop UI Data Objects SQL Data Data Access Objects
Single URL redirection
Security Option TypeProsCons Windows “NTML” Very secureNot many mobile device support it DigestMore secure than basicNot many devices supports it BasicWidely implementedIt does not encrypt user name and password FormNo Windows Account needed Could be use with HTTPS Required coding the login page
Form Authentication Create Login Form Add User validation logic Enable Form Authentication <forms name="name" loginUrl="url“ protection="All|None|Encryption|Validation" timeout="30" path="/" requireSSL="true|false“ slidingExpiration="true|false">
Securing resources Define how can or can not access a resource A resource could be a page, application or subdirectory Two elements elements Mobile Security Support Cookie-less devices (default) Enable HTTPS on your site Requires WTLS from client to gateway
Securing a mobile web application
Templates List Control Parts HeaderTemplate Item Template Alternate Item Template FooterTemplate SeparatorTemplate Pocket PC Customization Cell Phone
Objectlist customization Modify the control rendering by using templates HeaderTemplate FooterTemplates ItemTemplate AlternatingItemTemplates SeparatorTemplate ItemDetailsTemplate Setting the Objectlist view Defined the objectlist
Setting the Object List
Image Display Multiple format BMP : Openwave.Com Wbmp : Wap browser Jpg : HTML browsers If you have the right format use property override Dynamic image control
Store information strategies TypeProsCons SessionStateAll Server sideMay impact server performance Web farm deployment is more difficult Hidden VariablesNo server side impact Overloads client with data More bandwidth usage Potential security risk Query StringIncluded in HTTP query string Client side size limits Must hand build parser Potential security risk CookiesFlexibleNot all the devices supports it
Storing information
Setting focus on a control Create an inheritance control Add a JavaScript property Override the render method
Setting focus of a control
Set a Right Softkey WML does not provide a way to set the right softkey Step 1 define a filter Use Scripttemplate
Setting right Softkey
Adaptive Rendering Tips Navigation Reduce the number of clicks Improve navigational links ObjectList Tips Turn pagination on Turn wrapping off Input form Literal Text Turn BreakAfter property off Insert space in HTML view
Optimizing the UI
Download emulator List of link of the current available emulators:
Getting Started Download.NET Framework 1.1 ASP.NET controls are part of the redist Read the QuickStart Tutorial Review existing sample application 5 ASP.NET Starter Kits Available Get your question answered Participate in Peer to peer forums Apply the latest device support Download the latest Device Update Let us know what you think Send Feedback to:
Summary The ASP.NET Mobile Controls… Makes it easy to build mobile web applications for cell phones, PDAs and pagers Leverage current investment in the.NET Framework and Visual Studio.NET Is 3 rd party extensible
Questions?
Ask The Experts Get Your Questions Answered I will be available in the ATE area after this session
Community Resources Most Valuable Professional (MVP) Newsgroups Converse online with Microsoft Newsgroups, including Worldwide User Groups Meet and learn with your peers
evaluations evaluations
© 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.