欢迎来到天天文库
浏览记录
ID:35294765
大小:431.00 KB
页数:24页
时间:2019-03-23
《nettiers学习总结6--webui》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、WebLibraryEditWhatistheWebLibrary?TheNetTiersWebLibraryisasetofControlsandObjectsthatprovidepowerfultoolstomakeyourwebdevelopmentprojectswithNetTiersmucheasierandmoreefficient.EditTypedDataSourceControls-vs-EntityDataSourceTheWebLibraryoffersbothStronglyTypedDataSource
2、ControlsaswellasthemoregenericEntityDataSource.ThestronglytypedDataSourcecontrolsaregreatbecausebybindingtothemyouhaveallyourobject'spropertiesandmethodspre-definedandatyourdisposal.AllofthisshowsupinIntelliSense.ThesemaintaintheObjectDataSourcecontrolseventmodel,excep
3、ttheyaregearedtoyourdata,relationships,anddomain.Ontheotherhand,theEntityDataSourcecontrolisagenericdatasourceandisusefulbecauseituses100%reflectiontoworkwiththedataproviders.Thisisgreatwhenyouneedtochangethetypeatruntime,ormaybeyouhavewrittenyourownmethodswithintheDat
4、aAccessLayerthatyouwouldliketocall,thenyouwouldsimplyusetheEntityDataSourcecontrol.EditUserInterfacecontrolsTheWebLibraryaddsacollectionofuserinterfacecontrolstoyourtoolboxsuchasthestronglyboundrepeaters,EntityGridView,EntityDropDownList(andboundfieldversion),BoundRadi
5、oButtonField,HyperlinkField,EntityLabelandaGridViewSearchPanel.EditWeb.ConfigConfigurationTousetheNetTiersWebLibraryyou'llneedtosetupyourweb.config...1234566、ce="Northwind.Web.Data"assembly="Northwind.Web"/>78910111820218、ystem.web>22EditUsingtheTypedDataSourceControlsStronglyTypedDataSourcecontrols:Youwillfindthatjustbyt
6、ce="Northwind.Web.Data"assembly="Northwind.Web"/>78
8、ystem.web>22
此文档下载收益归作者所有