Download presentation
Presentation is loading. Please wait.
Published byMalcolm Bond Modified over 9 years ago
1
MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director
2
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
3
Redirection Business Logic Data Store Presentation Layer Business Objects Mobile UI Desktop UI Data Objects SQL Data Data Access Objects
4
Single URL redirection
5
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
6
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">
7
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
8
Securing a mobile web application
9
Templates List Control Parts HeaderTemplate Item Template Alternate Item Template FooterTemplate SeparatorTemplate Pocket PC Customization Cell Phone
10
Objectlist customization Modify the control rendering by using templates HeaderTemplate FooterTemplates ItemTemplate AlternatingItemTemplates SeparatorTemplate ItemDetailsTemplate Setting the Objectlist view Defined the objectlist
11
Setting the Object List
12
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
14
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
15
Storing information
16
Setting focus on a control Create an inheritance control Add a JavaScript property Override the render method
17
Setting focus of a control
18
Set a Right Softkey WML 1.1- 1.2 does not provide a way to set the right softkey Step 1 define a filter Use Scripttemplate
19
Setting right Softkey
20
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
21
Optimizing the UI
22
Download emulator List of link of the current available emulators: http://support.microsoft.com/default.aspx?scid=kb;en-us;320977
23
Getting Started Download.NET Framework 1.1 ASP.NET controls are part of the redist http://www.asp.net/download-1.1.aspx?tabindex=0&tabid=1 Read the QuickStart Tutorial http://samples.gotdotnet.com/mobilequickstart/Samples Review existing sample application 5 ASP.NET Starter Kits Available http://www.asp.net/Default.aspx?tabindex=9&tabid=47 Get your question answered Participate in Peer to peer forums http://www.asp.net/Forums/default.aspx?tabindex=1&tabid=39 Apply the latest device support Download the latest Device Update http://www.asp.net/mobile/deviceupdate.aspx?tabindex=6 Let us know what you think Send Feedback to: mitsup@Microsoft.commitsup@Microsoft.com
24
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
25
Questions?
26
Ask The Experts Get Your Questions Answered I will be available in the ATE area after this session
27
Community Resources http://www.microsoft.com/communities/default.mspx Most Valuable Professional (MVP) http://www.mvp.support.microsoft.com/ Newsgroups Converse online with Microsoft Newsgroups, including Worldwide http://www.microsoft.com/communities/newsgroups/default.mspx User Groups Meet and learn with your peers http://www.microsoft.com/communities/usergroups/default.mspx
28
evaluations evaluations
29
© 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.