mbl 305 asp.net mobile controls: best practices gökşin bakir csa yage ltd. microsoft regional...
TRANSCRIPT
![Page 1: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/1.jpg)
MBL 305
ASP.NET Mobile Controls: Best Practices
Gökşin Bakir
CSA
Yage Ltd.
Microsoft Regional Director
![Page 2: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/2.jpg)
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
![Page 3: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/3.jpg)
Redirection
Business LogicBusiness Logic
Data StoreData Store
Presentation LayerPresentation Layer
Business ObjectsBusiness Objects
Mobile UIMobile UIDesktop UIDesktop UI
Data ObjectsData Objects
SQL DataSQL Data
Data Access ObjectsData Access Objects
![Page 4: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/4.jpg)
Single URL redirectionSingle URL redirection
![Page 5: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/5.jpg)
Security Option
Type Pros Cons
Windows
“NTML”
Very secure Not many mobile device support it
Digest More secure than basic Not many devices supports it
Basic Widely implemented It does not encrypt user name and password
Form No Windows Account needed
Could be use with HTTPS
Required coding the login page
![Page 6: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/6.jpg)
Form Authentication
Create Login FormAdd User validation logic
Enable Form Authentication<authentication mode="Forms">
<forms name="name"
loginUrl="url“
protection="All|None|Encryption|Validation" timeout="30"
path="/"
requireSSL="true|false“
slidingExpiration="true|false">
![Page 7: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/7.jpg)
Securing resources
<authorization>Define how can or can not access a resource
A resource could be a page, application or subdirectory
Two elements<deny> <allow> elements
Mobile Security Support Cookie-less devices (default)
Enable HTTPS on your siteRequires WTLS from client to gateway
![Page 8: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/8.jpg)
Securing a mobile web Securing a mobile web applicationapplication
![Page 9: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/9.jpg)
Templates
List Control Parts
Header Header TemplateTemplate
Item TemplateItem Template
Alternate ItemAlternate ItemTemplateTemplate
FooterFooterTemplateTemplate
SeparatorSeparatorTemplateTemplate
Pocket PC Customization
Cell Phone
![Page 10: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/10.jpg)
Objectlist customization
Modify the control rendering by using templates
HeaderTemplate
FooterTemplates
ItemTemplate
AlternatingItemTemplates
SeparatorTemplate
ItemDetailsTemplate
Setting the Objectlist view Defined the objectlist
![Page 11: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/11.jpg)
Setting the Object ListSetting the Object List
![Page 12: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/12.jpg)
Image Display
Multiple formatBMP : Openwave.Com
Wbmp : Wap browser
Jpg : HTML browsers
If you have the right format use property override
Dynamic image control
![Page 13: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/13.jpg)
Dynamic image controlDynamic image control
![Page 14: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/14.jpg)
Store information strategiesType Pros Cons
SessionState All Server side May impact server performance
Web farm deployment is more difficult
Hidden Variables No server side impact
Overloads client with data
More bandwidth usage
Potential security risk
Query String Included in HTTP query string
Client side size limits
Must hand build parser
Potential security risk
Cookies Flexible Not all the devices supports it
![Page 15: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/15.jpg)
Storing informationStoring information
![Page 16: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/16.jpg)
Setting focus on a control
Create an inheritance controlAdd a JavaScript property
Override the render method
![Page 17: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/17.jpg)
Setting focus of a Setting focus of a controlcontrol
![Page 18: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/18.jpg)
Set a Right Softkey
WML 1.1- 1.2 does not provide a way to set the right softkey
Step 1 define a filter<deviceFilters> <filter name="supports2SoftKeys"
compare="NumberOfSoftkeys" argument="2"/>
</deviceFilters>
Use Scripttemplate<mobile:DeviceSpecific runat="server">
<Choice Filter="supports2SoftKeys" >
<ScriptTemplate> <do type="options" label="MS"> <go href="www.microsoft.com" /> </do>
</ScriptTemplate>
</Choice>
</mobile:DeviceSpecific >
![Page 19: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/19.jpg)
Adaptive Rendering Tips
NavigationReduce the number of clicks
Improve navigational links
ObjectList TipsTurn pagination on
Turn wrapping off
Input formLiteral Text
Turn BreakAfter property off
Insert space in HTML view
![Page 20: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/20.jpg)
Optimizing the UIOptimizing the UI
![Page 21: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/21.jpg)
Download emulator
List of link of the current available emulators:
http://support.microsoft.com/default.aspx?scid=kb;en-us;320977
![Page 22: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/22.jpg)
Getting Started
Download .NET Framework 1.1ASP.NET controls are part of the redist
http://www.asp.net/download-1.1.aspx?tabindex=0&tabid=1
Read the QuickStart Tutorialhttp://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 answeredParticipate in Peer to peer forums
http://www.asp.net/Forums/default.aspx?tabindex=1&tabid=39
Apply the latest device supportDownload the latest Device Update
http://www.asp.net/mobile/deviceupdate.aspx?tabindex=6
Let us know what you thinkSend Feedback to: [email protected]
![Page 23: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/23.jpg)
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 3rd party extensible
![Page 24: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/24.jpg)
Questions?Questions?
![Page 25: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/25.jpg)
Ask The ExpertsGet Your Questions Answered
I will be available in the ATE area after this session
![Page 26: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/26.jpg)
Community Resources
Community Resourceshttp://www.microsoft.com/communities/default.mspx
Most Valuable Professional (MVP)http://www.mvp.support.microsoft.com/
NewsgroupsConverse online with Microsoft Newsgroups, including Worldwidehttp://www.microsoft.com/communities/newsgroups/default.mspx
User GroupsMeet and learn with your peershttp://www.microsoft.com/communities/usergroups/default.mspx
![Page 27: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/27.jpg)
evaluationsevaluations
![Page 28: MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director](https://reader036.vdocuments.net/reader036/viewer/2022070413/5697bff81a28abf838cbf555/html5/thumbnails/28.jpg)
© 2003 Microsoft Corporation. All rights reserved.© 2003 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.