资源描述:
《Databinding-with-IronPython-for-ASP.NET》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Walkthrough:DatabindingwithIronPythonforASP.NETIntroductionIronPythoncodeisdynamicallycompiled,whichallowssimplifieddatabindingsyntaxandincreasedflexibility.ThiswalkthroughshowsyouhowtoaddIronPythoncodetotailortheappearanceofdataretrievedfromaMicrosoftAccessdatabase(
2、.mdbfile).Note Accessdatabasesdonothavethesamecapacityandarenotasscalableasothertypesofdatabases,suchasMicrosoftSQLServer.ThiswalkthroughusesanAccessdatabasebecausetheNorthwind.mdbsampledatabaseiswidelyknownandavailable.Generally,ifyouarecreatingaWebsitethatwillsup
3、portonlylighttrafficoralimitednumberofusers,youshoulduseaSQLServerExpressdatabase.However,iftheWebsitewillsupportmorethroughputoralargernumberofusers,youshouldconsiderusingSQLServeroranotherdatabasethatissuitedforproductionWebsites.PrerequisitesInordertocompletethisw
4、alkthrough,youwillneedthefollowing:·MicrosoftVisualStudio2005orMicrosoftVisualWebDeveloper·IronPythonforASP.NETCommunityTechnologyPreview,includingVisualStudioIntegrationorVisualWebDeveloperIntegration,asappropriate·TheNorthwind.mdbfilethatcontainstheAccessversionoft
5、hesampleNorthwinddatabase.Alternatively,youcanuseanotherdatabaseandadjustthestepsinthewalkthroughtomatchthedatabaseandtablesthatyouareusing.ThiswalkthroughassumesthatyouhaveageneralunderstandingofworkingwithASP.NETinVisualStudio,andageneralknowledgeofdatabindinginASP
6、.NET.ForanintroductiontoASP.NETinVisualStudio,seeWalkthrough:CreatingaBasicPageinVisualWebDeveloper.ForanintroductiontodatabindinginASP.NET,see"Data-DrivenWebPages".CreatingtheWebSiteandPageIfyouhavealreadycreatedaWebsiteinVisualStudio(forexample,byworkingwiththecomp
7、anionwalkthrough"CreatingaBasicWebPagewithIronPython"),youcanusethatWebsiteandgotothenextpartofthewalkthrough,whereyouaddanAccessdatabasetotheproject.Otherwise,createanewWebsiteandpagebyfollowingthesesteps.TocreateafilesystemWebsite1.OpenVisualStudioorVisualWebDevelo
8、per.2.OntheFilemenu,clickNewWebSite.TheNewWebSitedialogboxappears.3.IntheLanguagelist,clickIronPythontomakeIronPythonthedefaultlang