自从2001年发布以来,微软的Visual Studio和ASP.NET已成为创建基于Windows的Web应用程序和服务的最受欢迎的工具。成千上万的开发者已经利用这本权威书籍来掌握这些工具。现在,在这个完全修订和扩展的版本中,作者Jesse Liberty和Dan Hurwitz向你展示如何使用Visual Studio 2005、C# 2.0和ASP.NET 2.0来构建下一代Web应用程序。你很快就能够用比你所能想象的更少的时间及更少的代码来建立更安全和更交互的站点。\r\n 《ASP.NET编程》以对ASP.NET 2.0和Visual Studio 2005的全面概述开始,这样使你能尽可能快地入门。前几章深入讨论了控制、事件、ASP.NET Web页面的生命周期以及其他ASP.NET框架的基本概念。\r\n 本书还包括以下新的主题:\r\n 创建与Master page一致的外貌风格\r\n 使站点易于个性化\r\n 增加站点导航,包括站点地图和零碎的信息\r\n 使用新的成员资格和授权控制来实现基于窗体的安全\r\n 使用新的数据控制和ADO.NET 2.0来存取与绑定数据\r\n 简化应用程序的配置和部署
Preface\r\n1.ASP.NET 2.0\r\n.NET Framework 2.O\r\nASP.NET 2.0\r\nNew Features\r\nSpecia1 Folders Make Integration Easier\r\nSecurity\r\nPersonalization\r\nMaster Pages\r\nNavigation\r\nWeb Sites WithOUt IIS\r\nImproved Controls\r\nNew Controls\r\nVisual Studio 2005(VS2005)\r\nMobile Devices\r\nOn to VS2005\r\n\r\n2.VisuaI Studio 2005\r\nStart Page\r\nFile System\r\nHTTP\r\nFTP\r\nCteating Your First Web Page\r\nProjects and Solutions\r\nSolutions\r\nProjects and Files\r\nTemplates\r\nProiect Names\r\nThe Integrated Development Environment(IDE)\r\nLavout\r\nBuilding and Running\r\nMenus and T00lbars\r\nFileMenu\r\nEdit Menu\r\nView Menu\r\nRefactor Menu\r\nWebsite Menu\r\nProject Menu\r\nBuild Menu\r\nDebug Menu\r\nData Menu\r\nFormat Menu\r\nTools Menu\r\nWindow Menu\r\nHelp Menu\r\n\r\n3.Controls:Fundamental Concepts\r\nEvents\r\nASP.NET Events\r\nEvent Arguments\r\nApplication and Session Events\r\nPage and Control Events\r\nPOStback Versus Non-POStback Events\r\nIsPostBack\r\nEvents in Visual Studio 2005\r\nMultiple Controls to one Event Handler\r\nASP.NET Server Controls\r\nASP.NET and Browsers\r\nASP.NET Server Control Class Hierarchv\r\nCSS Stvles\r\nHTML Server Controls\r\nClient-Side Processing\r\n\r\n4.Basic Controls\r\nThe Basics\r\nLabel Control\r\nTextBOX Control\r\nHiddenField Control\r\nButton Controls\r\nHyperLink Control\r\nSelecting Values\r\nCheckBOX Control\r\nRadioButton Control\r\nSelecting from a L1St\r\nListItem object\r\nCheckBOXList Control\r\nRadioButtonList Control\r\nDrodDownLoSt Control\r\nListBOX Control\r\nBuUetedList Contr01\r\nTables\r\nTable Rows\r\nTable Cells\r\nCeU Width\r\nPanel Control\r\nImages\r\nImage Control\r\nImageMap Control\r\n\r\n5.Advanced Controls\r\nMultiView and View Controls\r\nWizard Control\r\nFileUpload Control\r\nAdRotator Control\r\nAdvertisement File\r\nUsing AdRotator\r\nCalendar\r\nSelecting Dates in the Calendar\r\nControlling the Calendar’s Appearance\r\nProgramming the Calendar Control\r\n\r\n6.Web Site Fundamentals\r\nThePage\r\nCode-Behind\r\nMoving to Another Page\r\nHyperLink\r\nServer.Transfer\r\nResponse.Redirect\r\nCross-Page Posting\r\nState\r\nSession State\r\nView Srate\r\nState Bag\r\nApplication Stare\r\nLifecycle\r\nDirectives\r\nApplication DirectiVe\r\nAssembly Directive\r\nControl Directive\r\nImplements DirectiVe\r\nImport Directive\r\nMaster Directive\r\nMasterType Directive\r\noutputCache Directive\r\nPage Directive\r\nReference Directive\r\nRegister Directive\r\n\r\n7.Tracing,Debugging,and Error Handling\r\nCreating the Sample Application\r\nTracing\r\nPage-Level Tracing\r\nInserting into the Trace Log\r\nApplication-Lfivel Tracing\r\nTrace Viewer\r\nDebugging\r\nThe Debug Toolbar\r\nBrcakDoints\r\nStepping Thtongh Code\r\nExamining Variables and Objects\r\nDebug Windows\r\nError Handling\r\nUnhandled Errors\r\nApplication-Wide Error Pages\r\nPage-Specific Error Pages\r\n\r\n8.VaIidation\r\nThe RequoredFieldValidator\r\nThe Summary Control\r\nThe Compare Validator\r\nChecking the Input Type\r\nComparing to Another Contro1\r\nRange Checking\r\nRegular Expressions\r\nCustom Validation\r\nValidation Groups\r\n\r\n9.Web Data Access\r\nGetting Data from a Database\r\nData Source Contro1s\r\nGridView Contro1\r\nAdding Insert,Update,and Delete Statements\r\nMultiuser Updates\r\nOptimistlc Concurrency\r\nDisplaying and Updating the Grid\r\nTakeItfor a Spin\r\nTracking the Update with Events\r\nModifying the Grid Based on Events\r\nPassing Parameters to the Select Query\r\nDataLiSt Contro1\r\nEditing Items in List Controls\r\nDeleting Items from a LiSt Control\r\nRepeater Control\r\nDetailsView Contro1:Examining One Record at a Time\r\nFormView Control:Examining Single Records as Master/Detail\r\nEditing with FormView\r\nInserting New Records\r\nDetailsView and FormView Events\r\n\r\n10.ADO.NET\r\nThe ADO.NET Object Model\r\nThe DataSet Class\r\nDbcommand and Dbconnection\r\nThe DataAdapter object\r\nThe Data Reader obiect\r\nGetting Started with ADo.NET\r\nUsing a DataReader\r\nCrearing Data Relations Within DataSets\r\ncreating Data objects by Hand\r\nBug Database DeSign\r\nCreating the DataTable by Hand\r\nCreating Primary Keys\r\nCreating Foreign Keys\r\nCreating Data Relations\r\nStored Procedures\r\nCreating a Simple Stored Procedure\r\nStored Procedures with Parameters\r\nUpdating with SQL and ADo.NET\r\nUpdating Data With Transactlons\r\nThe ACID Test\r\nImplementreg Transactions\r\nBinding to Business obiects\r\n\r\n11.Forms·Based Security\r\nAUthentication\r\nAnonymous Access\r\nWindows AUthentication\r\nPassport AUthentication\r\nForms Authentication\r\nForms-Based Authentication in Detail\r\nCreate the ApplicatiOn\r\nAddinll a Password Reminder\r\nAdd Roles to ASP.NET Accounts\r\nUsing the Web Administrator T00l to Set Up Roles\r\nRestricting Access to Pages Based on Roles\r\n\r\n12.Master Pages and NaVigation\r\nMaster Pages\r\nAdding Content Pages\r\nUsing Nested Master Pages\r\nDynamically Editing the Master\r\nNavigation\r\nGetting Started with Site Navigation\r\nSetting Up the Pages\r\nCustomizing the L00k and Feel\r\nPopulating on Demand\r\nUsing a Menu for Navigation\r\nEnumerate Site Map Nodes Programatically\r\nFiltering Based on Security\r\nEnable Membership\r\nAdding R01es\r\nAdd aLogin Page\r\nCreate Access Rules\r\nCrearing a Permission-Driyen Site Map\r\n\r\n13.PersonaIlzation\r\nCrearing Personalized Web Sites\r\nRecording Personalization Information\r\nSetting Up Profile Handling\r\nExploring the Profile Tables\r\nPersonalizing With Complex Types\r\nAnonymous Personalization\r\nThemes and Skins\r\nCreate the Test Site\r\norganize Site Themes and Skins\r\nEFlable Themes and Skins\r\nspecify Themes for Your Page\r\nSetting Stylesheet Themes\r\nSetting Customization Themes\r\nUsing Named Skins\r\nWeb Parts\r\nWeb Parts Architecture\r\nCreating Zones\r\nAdding Controls to Zones\r\nMinim1。zlng and Restoring\r\nEnabhng Editing and Layout Changes\r\nCreating a User Control to Enable Changing Page Layout\r\nAdding Parts fiom a Catalog\r\n\r\n14.Custom and U$er Contols\r\nUser Controls\r\nUser Controls with Code\r\n@Control Directive\r\nProperties\r\nHandling Events\r\nCustom Controls\r\nProperties\r\nThe Render Method\r\nUpdating the Control\r\nMaintaining State\r\nCreating Derived Controls\r\nCreating CompOSite Controls\r\n\r\n15.Creating Web SerVices\r\nHOW Web Services Work\r\nDeveloping a Web Service\r\nThe Proxy\r\nCreatlng the Consumer\r\nProtocols and Standards\r\nHTTP\r\nXML\r\nSOAP\r\nWeb Seivices Enhancements(WSE)\r\nCreatlng a Simple Web Service\r\nIn-Line with a Text Editor\r\nCode-Behind with Visual Studio 2005\r\nWebServlce Dlrectlve\r\nDerivlng from the WebService Class\r\nApplication State via HttpContext\r\nWebServiceBinding Attrlbute\r\nWebMethod Attrlbute\r\nThe BufferResponse Property\r\nCacheDuration PropertV\r\nDescription Property\r\nEnableSession Property\r\nMessageName Property\r\nTransactionoption Property\r\nWebService Attribute\r\nDescription Property\r\nName Property\r\nNamespace Property\r\nData Types\r\nArrays\r\nClaSSeS and Structs\r\nDataSets\r\nStOCkTickerComplete\r\nCreating Discovery Documents\r\nDiSCOVery via Query Strlng\r\nStatic Discovery Files\r\nDeployment\r\nPre-Compiled Assemblies\r\nDynamically Compiled Assemblies\r\n\r\n16.ConsumingWeb Services\r\nDiSCOVery\r\nCreating the C1ient with VS2005\r\nCreatlng the Client Manually\r\nCreatlng the Consumer Web Page Content\r\nCreating the ProXy\r\nCompihng the Proxy Class\r\nFiniShing the Consumer App\r\nUsing Asynchronous Method Calls\r\n\r\n17.Caching and Performance\r\nTypes of Caching\r\nClass Caching\r\nConfiguration Caching\r\nData Caching\r\noutput Caching\r\nobject caching\r\nData Caching\r\nDataSourceControl Caching\r\nSQL Cache Dependency\r\noutput Caching\r\nThe outputCache Directive\r\nFragment Caching:Caching Part of a Page\r\nobject caching\r\nCache Class Functionalitv\r\nDependencies\r\nScavenging\r\nCallback Support\r\nThe HttpCachePolicy Class\r\nPerfOrmance\r\nASP.NET-Specic Issues\r\nGeneral.NET Issues\r\nDatabase Issues\r\nBenchmarking and Profiling\r\n\r\n18.Application Logic and Configuration\r\nInternet Information Server(IIS)\r\nIIS Verslons\r\nVirtual Dlrectories\r\nUnderstanding Web Applications\r\nApplication-Wide Logic\r\nHttpAppliCation o bject\r\nglobal.asax\r\nGlobal Members\r\nConfiguring the Application\r\nHierarchical Configuration\r\nFnrmaf\r\nConfiguration Settings UI\r\nWeb Site Administration Tool\r\nOther Configuration Settings\r\nCustom Configuration Sections\r\n\r\n19. Deployment\r\nAssemblies\r\nMicrosoft Intermediate Language (MSIL)\r\nILDASM\r\nManifests\r\nVersioning\r\nPrivate Versus Shared Assemblies\r\nStrong Names\r\nLocal Deployment\r\nFull Runtime Compilation\r\nManual Compilation of Assemblies\r\nFull Pre-Compilation\r\nPre-Compilation of Code Only\r\nGlobal Deployment\r\nWindows Installer\r\nBuild Configurations\r\nAdding a Setup Proiect with the Setup Wizard\r\nAdding a Setup Project Manually\r\nFurther Customizations\r\nDeploying the Web Site\r\nA. Keyboard Shortcuts\r\nB. Relational Database Technology: A Crash Course\r\nIndex
无封面