ASP.NET编程:Creating and displaying a DataSet in...
c++是语言,其实C++和java的应用范围根本就不一样的。在java应用的领域内,c++是不合适的。所以微软才搞了C#和Java对抗。Thenew.NetservermodelinDreamweaverMXletsyouleveragethepowerofthe.Netframeworkinavisualenvironment.AnyonethatisfamiliarwithUltradevsRecordsetserverbehaviorwillfeelverycomfortablemovingto.NetsDataSet.EvenifyouhaveneverworkedwithDreamweaver,thistutorialwillshowyouhoweasyitis.Firstoff,weneedtocreateaconnectiontothedatabase.ThisisdoneintheDatabasestabintheFilespanel.Youcanchoosebetweentwodifferenttypesofconnections
[*]OleDbConnection
[*]SqlServerConnection
ODBC,althoughsomewhatsupportedinthe.Netframeworkasaseparatedownload,wasleftoutofthisrelease.ThisisprobablyagoodthingbecausealmosteverymajordatabasehasOleDbdriversonthewindowsplatform.ODBCisnotasfastasOleDb,whichisprobablywhyMicrosoftchoseto"barely"supportitasaseparatedownload.IfyouareusingSQLServerasyourdatabase,thentheSqlServerconnectionistheonlywaytogoasitoffersperformanceadvantages.
WewillbecreatingaSqlServerConnectioninthistutorialbecausethatiswhatIamworkingwith.TheOleDbconnectionisnotmuchdifferentotherthanthefactthatyoucanbringupthemicrosoftdatalinkdialog.
[*]Clickthe+IconintheDatabasespanel
[*]ChooseSQLServerConnection
[*]Fillouttheinformationforyourdatabaseintheprovidedtemplate
Onceyouaredone,youwillseeatreeviewofyourdatabasethatletsyouexploretables,views,andstoredprocedures.
ThenextstepistoApplytheDataSetserverbehavior.
[*]Clickthe+iconintheServerBehaviorspanel
[*]ChooseDataset
[*]Nameyourdataset
[*]Chooseyourconnection
[*]Choosethetableandfieldsyouwanttoretrieve
ThisistheexactsameinterfaceastheaspservermodelsoasImentionedbefore,transitioningto.Netdevelopmentwillbeeasyifyoucomefromanaspbackground.
AfteryouhavecreatedtheDataset,youwillfindthatthecontentsofthedatsetaredisplayedintheBindingspanel.Youcandrageachfieldovertothepageyouareworkingin,andplaceitwhereveritneedstogoinyourdesign.Onceyouhavelaidouryourdesign,youcanapplytherepeatregionserverbehavior.
[*]Highlighttheitemsyoujustplacedonthepage.
Makesureyoutakeintoconsiderationpagebreaks,whetherthatbeas<br/>attheend,<p></p>aroundtheselection,orwithin<tr></tr>tags.
[*]Clickthe+iconintheserverbehaviorstab.
[*]ChooseRepeatRegion
Behindthescenes,Dreamweaveractuallyplacesthecontentsofyourselectionwithin<asp:repeater>tags.
Itsassimpleasthat,onceyoudothisacoupleoftimes,itbecomessecondnature,soyoucanfocusonbuildingyourapplications,insteadofrememberingesotericobjectp
对于new隐藏成员的作用,往往是出于使用了一个第三方类库,而你又无法获得这个类库的源代码,当你继承这个类库的某个类时,你需要重新实现其中的一个方法,而又需要与父类中的函数使用同样的函数,这是就需要在自定义的子类中把那个同名函数(或成员)加上new标记,从而隐藏父类中同名的成员。 网页从开始简单的hmtl到复杂的服务语言,走过了10多个年头,各种技术层出不穷,单个的主流技术也在不断翻新的版本,现在分析下各种语言的区别、优势、劣势、开发注意事项! 大哥拜托,Java在95年就出来了,微软垄断个妹啊,服务器市场微软完全是后后来者,当年都是Unix的市场,现在被WindowsServer和Linux抢下大片,包括数据库也一样。 asp.net空间的支持有:ASP.NET1.1/虚拟目录/MicrosoftFrontPage2000扩展/CDONTS,同时他的网站上也提供了Asp.net的使用详解和程序源代码,相信对使用ASP.NET编程的程序员来说会非常有用哦! 它可通过内置的组件实现更强大的功能,如使用A-DO可以轻松地访问数据库。 当然我们在选择Asp.net主机是,除了要考虑服务提供商在版本是否是实时更新以外,机房的环境和配置也是非常重要的,通常选择骨干网的机房,在速度和稳定性上会非常有保证。 有一丝可惜的是,这个系列太强了,Java阵营的朋友根本就是哑口无言...争论之火瞬间被浇灭,这不是我想这么早就看到的,但是值了。 同时也感谢博客园给我们这个平台,也感谢博客园的编辑们做成专题引来这么多高人指点。
页:
[1]