版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MicrosoftMobileInternetToolkit:HowtoUseIttoDevelopMobileASP.NETPages
JeremyBostron
BetaSupportEngineer
BetaTechnicalSupport
MicrosoftCorporation1AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtendingMicrosoft®.NETFrameworkMobileInternetControlObjectModelIntegratingwithMicrosoftVisualStudio®.NETUsingadvancedfeaturesGettingstarted2AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtending.NETFrameworkMobileInternetControlObjectModelIntegratingwithVisualStudio.NETUsingadvancedfeaturesGettingstarted3MobileWebDevelopment
Anytime,Anywhere,onAnyDeviceUtilizebrowserinterfaceReachbroadclientdevicesReachconnecteddevicesServer-sidebusinesslogicSimplifyoperationsNoclientinstallationsLowcosttoupgradeUseexistingdeveloperskillsetsLeveragedesktopWebinvestment4MobileWebChallengesFormfactorsanddevicecapabilitiesContentpaginationMultiplemarkuplanguagesBrowservariationsStatemanagementCookiesupportSessionDevelopmenttools5AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtending.NETFrameworkMobileInternetControlObjectModelIntegratingwithVisualStudio.NETUsingadvancedfeaturesGettingstarted6TheSolution:MobileInternetToolkitAdaptivelyrendertodevicesbasedonbrowser,device,andgatewaycombinationExtendMicrosoftASP.NETtoempowerWebdeveloperstobuildmobileWebapplicationsIntegrateswiththeVisualStudio.NETdevelopmentenvironmentforeaseofuse7MobileInternetToolkitSinglemobileWebpagethatadaptstomultipledevicesSupportformultiplemarkuplanguagesWML1.1(WAP),cHTML1.0,andHTML3.2SupportforavarietyofdevicesCellphones(WAPandcHTML),PDAs,andpagersCustomizableandextensibleframeworkAddnewcontrolsSupportfornewdeviceswithouthavingtorewriteorrecompileyourapplication8MobileInternetToolkitMobileInternetControlsRuntimeIntelligentlyrenderscontentformobiledevicesMobileInternetDesignerIntegrateswithVisualStudio.NETIDEDevicecapabilitiesDeveloperresourcesDocumentationQuickStartTutorialDeviceadaptercode9IIS.NETFrameworkMobileInternetToolkitDevelopmentEnvironmentProductionEnvironmentCreate
mobileWebFormIntegrateBusinessLogicMobilePresentationLayer(controls)TestTargetDevicesPosttoWebServersHTTPRequestDeviceCapabilitiesMobileControls&DeviceAdapters(generatedisplay)HTTPResponseMobile.aspPagesHowMMITWorks…10DeviceSupport
ReleaseCandidateACESSCompactNetFront2x(DoCoMo):MitsubishiD502i,MitsubishiD503i,NECN210i,NECN502i,PanasonicP210i,FujitsuF503i,SonySO503iEricssonBrowsers:EricssonR380,EricssonR320,EricssonR520m,EricssonT20sGo.Web:RIMBlackberry857,PalmVx,RIMBlackberry950,RIMBlackberry957MicrosoftMobileExplorer:SonyCMD-z5,SonyJ5,BenefonQMicrosoftPocketInternetExplorer2000(4.x):CasioCassiopeiaE-125,CompaqiPAQH3630,CompaqiPAQH3650,HPJornada720,CompaqiPAQH3670NokiaBrowsers:Nokia6210,Nokia3330,Nokia7110,Nokia9110i,Nokia631011DeviceSupport(2)
ReleaseCandidateOpenwaveUP.Browser3.x:AudiovoxCDM-9000,AudiovoxCDM-9100,EricssonR280LX,HitachiC40xH,Kyocera3035,KyoceraQCP2035A,LGV111,MitsubishiT250,MotorolaP8767TimePort,MotorolaStarTAC7868W,SamsungSCH-6100,SamsungSCH-850,SamsungSCH-8500,SamsungUpRoarM100,SanyoC40xSA,SanyoSCP-4500,SanyoSCP-5000,SprintTouchpoint,SprintTouchpoint2200,SprintTP3000OpenwaveUP.Browser4.x:MotorolaP7389,Motorolav60c,SiemensSL45,SiemensS35i,Motorolai1000+,Motorolai2000+,AlcatelO.T.701,MotorolaP7382iTimePort,AudiovoxCDM-135,Motorolai50sx,Motorolai85s,Motorolav120c,Motorolav100,MotorolaT2288,Motorolav2288,SiemensC35iMiscellaneousBrowsers:Nokia9210,Palmm505;PalmVII,PanasonicP502i,SharpJ-SH04,SharpZaurusMI-E1,ToshibaJ-T0512AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtending.NETFrameworkMobileInternetControlObjectModelIntegratingwithVisualStudio.NETUsingadvancedfeaturesGettingstarted13Extending.NETFrameworkMobileWebFormscontrolsareASP.NETcontrolsProgrammingmodelControl/object/eventmodelStatemanagementDesktopandmobileapplicationscansharecode.NETFrameworkServicesFrameworkASP.NETCommonLanguageRuntimeSystemServicesWinFormsBaseDataDebug…WebFormsMobileWebFormsWebServices14ExtendingASP.NETExtendstheASP.NETWebFormspagetoaddsupportformobiledevicesMobileWebFormpageSupportsmobiledevicesinthe.NETFrameworkExtendsMicrosoft’scurrenttoolsandapplicationmodeltomobiledevicesHostmobileWebFormcontrolsMobileWebFormcontrolsServer-sidecontrolsthatencapsulatecommonfunctionalityformobiledevices15HelloMobileWorld<%@Pagelanguage=“VB"Inherits=""%><%@RegisterTagPrefix=“mobile"Namespace=""
Assembly=""%>
<mobile:Formrunat="server"> <mobile:Labelrunat=“server"> Hello,MobileWorld </mobile:Label></mobile:Form>
16AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtending.NETFrameworkMobileInternetControlObjectModelIntegratingwithVisualStudio.NETUsingadvancedfeaturesGettingstarted17NameSpace.NameSpacePageNamespaceHierarchyWebFormsMobileWebFormsServerControlsControlSystem.Web.UI.ControlMobilePageSystem.Web.UI.MobileControls.MobilePageMobileServerControlsMobileControlSystem.Web.UI.MobileControls18MobileWebFormsControlsMobileControlStyleSheetTextControlTextViewValidationSummaryAdRotatorCalendarPagedControlSelectionListPanelImageLinkLabelCommandPhoneCallBaseValidatorFormObjectListListTextBoxRequiredFieldValidatorRegularExpressionValidatorRangeValidatorCustomValidatorCompareValidator19ContainerControls
FormControlMultipleformsperpageSeparatelyaddressablesetofcontrolsthatcanbenavigatedContainerforothercontrolsRenderedasoneormore“screens〞basedontargetdeviceOnlyoneactiveformatatimeBydefault–firstform
activewhenpage
accessedSetviaActiveForm<mobile:Formid="Form1"runat="server">...</mobile:Form>20ContainerControls
PanelControlsProvidesgroupingformultiplecontrolsSinglecontrolfordisplaying,hiding,enabling,ordisablingasetofcontrolsApplyingstylestopanelthatareinheritedbychildcontrolsEmptypanelplaceholdercontainerfordynamicallycreatedcontrols<mobile:Panelid="Panel1"runat="server"><mobile:Labelid="Label1"runat="server">Text…
</mobile:Label></mobile:Panel>
21TextDisplayControlsLabelcontrolSmallamountofcontent–read-onlytextTextBoxcontrolSingle-lineinputtextboxesTextViewcontrolExclusivetoMMITLargefieldsoftextSmallsetofmarkup:bold,italics,pagebreak,paragraph,anchortagSupportpagination22ListandSelection
ListControlDeclaredordataboundlistofitemsDecorations:None|Bulleted|NumberedItemscanbesettoactaslinksStaticorinteractivemodeSupportpaginationSimilartoDataListcontrolinASP.NET<mobile:Listid="lstProduce"runat="server"Decoration="Bulleted"> <ItemValue="1"Text="Apple"></Item> <ItemValue="3"Text="Banana"></Item></mobile:List>23ListControls
SelectionListControlStaticordataboundlistProvidesUIselectioncapabilityCandisplayindifferentmodes:Dropdown|ListBox|RadioButton|CheckBox|MultiSelectListSelectiondoesn’ttriggerserverevent–requiresCommandcontroltosubmitform<mobile:SelectionListid="slstProduce"runat="server“SelectType="Radio"><ItemValue="1"Text="Onion"></Item><ItemValue="2"Text="Celery"></Item></mobile:SelectionList>SimilartoASP.NETControls:ListBox,CheckBox,CheckBoxList,RadioButton,RadioButtonList,andDropDownList24ListControls
ObjectListControlStrictlydataboundUsetoshowlistortableofdataobjectsCanviewmultiplefieldsforeachdataobjectCanassociatemultiplecommandswitheachobjectSupportpaginationSimilartoDataGridinASP.NET<mobile:ObjectListid="objlstProduce"runat="server"LabelField="ProductName"DataMember="Products"DataSource="<%#Products1%>"></mobile:ObjectList>25ControlTransferControlsLinkcontrol Text-basedhyperlinktoanotherformonthemobilepageoranyURLSoftkeypropertySimilarHyperLinkcontrolinASP.NETPhoneCallcontrolExclusivetoMMITGeneratesmarkupforautomaticallycallingordisplayingphonenumbers<mobile:Linkid="lnkfrmResults"runat="server"NavigateUrl="#frmResults">GotoResults</mobile:Link>26ControlTransferControls
CommandControlLikeButtoncontrolinASP.NETWaytoinvokeASP.NETeventhandlersfromUIelementsSoftkeyLabelpropertySpecifytextforSoftkeyonsupportingmobilephones<mobile:Commandid="cmdSelectProduct"runat="server“softkeylabel=“Next〞>SelectProduct</mobile:Command>27ImageDisplay
ImageControlDisplaysimagefile(i.e.Winpro.gif)CanhaveassociatedURLIfimagesarenotsupportedonrequestingdevice,thealternatetextisshown<mobile:Imageid="imgPic“runat="server“ImageUrl="winpro.gif“NavigateUrl="://microsoft"AlternateText="Windows2000"></mobile:Image>AdRotatorcontrolDisplaysrandomadRequiresXMLfileSimilartoAdRotatorcontrolinASP.NET28ValidationControlsCompareValidatorcontrolCustomValidatorcontrolRangeValidatorcontrolRegularExpressionValidatorcontrolRequiredFIeldValidatorcontrolValidationSummarycontrol29CalendarControlSuppliesdate-pickingfunctionalityDevice-specificrenderingofcontrolSimilartoCalendarcontrolinASP.NET30AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtending.NETFrameworkMobileInternetControlObjectModelIntegratingwithVisualStudio.NETUsingadvancedfeaturesGettingstarted31MobileInternetDesignerUsesfamiliarVisualStudioAuthoringCreationofmobileWebsitesandapplicationsDraganddropMobileInternetcontrolsSetpropertiesandeventsIntegrateswithVisualStudio.NETCodedevelopmentDebuggingCodemanagementIntegrateddocumentationMobileInternetDesigner(2)MobileWebFormToolboxMultipleformsinthesamefileMobileProjectProperties&Events33AgendaMobiledevelopmentsituationSolution:MobileInternettoolkitExtending.NETFrameworkMobileInternetControlObjectModelIntegratingwithVisualStudio.NETUsingadvancedfeaturesGettingstarted34RenderingCustomization
WhyDoit?AbilitytooverridedefaultbehaviorControltheexactdisplayOptimizerendering35Customization
HowDoesitWork?StyleSheetDefineafilterSpecifycontrolbehavior/renderingPropertyoverrideGenerictemplate(e.g.ObjectListitem)Specifycontainerbehavior/renderingDeviceSpecificcontrolforformSelectdeviceorgroupofdevices36ExtensibilityMobileservercontrolEncapsulateorreuseapplicationfunction
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年度安全员资格考试附答案(满分必刷)
- 2024年度高校教师资格证资格考试附答案(考试直接用)
- 2024年版安全员(初级)内部模拟考试题库附答案(模拟题)
- 2024年高校教师资格证考试题(完整版)
- 2024年高级安全员模拟试题及完整答案1套
- 2024年高级安全员模拟试题(预热题)
- 2024高校教师资格证理论考试附答案(满分必刷)
- 2024高校教师资格证考试模拟题库含答案(夺分金卷)
- 2020校长办公室工作计划
- 2024年俄罗斯高铬耐磨构件(HCMIS)市场机会及渠道调研报告 Sample
- 食材供应商考核评分表
- 湖北省宜昌市2022-2023学年八年级下学期期末物理试卷(含解析)
- 第15课手绘线条的图像表现
- 幼儿园:中班语言《小爸爸》教案
- 2020新版个人征信报告模板
- 化学趣味实验1
- 航空运输地理--考试试卷
- 《小学数学解方程》PPT课件.ppt
- 学生自主管理实施方案
- 机械设计外文文献翻译、中英文翻译
- 材料力学复习总结知识点
评论
0/150
提交评论