LINQ to ListControl.txt下载

weixin_39821620 2019-04-27 11:00:20
LINQ to ListControl.txt
相关下载链接://download.csdn.net/download/kingzhexian/1984714?utm_source=bbsseo
...全文
16 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
Part I Getting Started 1 Introducing Microsoft SharePoint 2010 . 3 What Is SharePoint? 3 Main Capabilities 4 Sites . 5 Communities 5 Content . 5 Search . 6 Insights 6 Composites 6 SharePoint Basic Concepts 7 SharePoint Central Administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Site Collections and Websites . 8 Lists, Libraries, Items, and Documents 10 Web Parts and Web Part Pages 12 Architectural Overview . 12 Logical and Physical Architecture 14 Service Applications . 16 The Role of Databases 17 SharePoint Editions . 18 SharePoint Foundation 18 SharePoint Server Standard 19 SharePoint Server Enterprise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 SharePoint for Internet Sites . 20 SharePoint Online . 20 SharePoint for Developers . 20 ASP.NET Integration . 21 Server-Side Technologies 21 Client-Side Technologies 22 Download at Pin5i.Com viii Table of Contents Web Parts and UI 22 Data Provisioning 22 Event Receivers and Workflows 23 Security Infrastructure 23 Business Connectivity Services . 23 Windows PowerShell Support 24 Developer Tools . 24 Microsoft SharePoint Designer 2010 . 24 Microsoft Visual Studio 2010 26 SharePoint Server Explorer 28 Solution Explorer and Feature Designer . 29 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2 Data Foundation 31 Lists of Items and Contents . 31 Site Columns 46 Content Types 47 Websites 50 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Part II Programming Microsoft SharePoint 2010 3 Server Object Model . 55 Startup Environment 56 Objects Hierarchy 56 SPFarm, SPServer, SPService, and SPWebApplication . . . . . . . . . . . . . . . . 57 SPSite and SPWeb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 SPList and SPListItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 SPDocumentLibrary and SPFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 SPGroup, SPUser, and Other Security Types . 69 SPControl and SPContext . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Common and Best Practices 72 Disposing Resources . 73 Handling Exceptions . 76 Transactions . 78 AllowUnsafeUpdates and FormDigest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Download at Pin5i.Com Table of Contents ix Real-Life Examples 80 Creating a New Site Collection . 80 Creating a New Website 82 Lists and Items . 83 Document Libraries and Files 92 Groups and Users 97 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 4 LINQ to SharePoint 101 LINQ Overview 101 The Goal of LINQ 102 LINQ Under the Covers 104 Introducing LINQ to SharePoint . 106 Modeling with SPMetal.EXE 107 Querying Data . 117 Managing Data 122 Inserting a New Item 124 Deleting or Recycling an Existing Item . 125 Advanced Topics 126 Handling Concurrency Conflicts 126 Identity Management and Refresh 130 Disconnected Entities . 132 Model Extensions and Versioning 134 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 5 Client-Side Technologies . 137 Architectural Overview . 137 SharePoint Client Object Model . 138 Managed Client Object Model . 139 Silverlight Client Object Model 147 ECMAScript Client Object Model . 152 Client Object Model by Examples 158 Lists and Items . 159 Document Libraries and Files 165 SOAP Services 168 The REST API 171 Querying for Data with .NET and LINQ 173 Managing Data 177 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 Download at Pin5i.Com x Table of Contents Part III Developing Web Parts 6 Web Part Basics 183 Web Part Architecture 183 A “Hello World” Web Part 184 Web Part Deployment 188 Real Web Parts . 192 Classic Web Parts 192 Visual Web Parts . 195 Configurable Web Parts . 197 Configurable Parameters . 198 Editor Parts . 200 Handling Display Modes 204 Custom Web Part Verbs . 205 The SharePoint-Specific WebPart class 207 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 7 Advanced Web Parts . 209 Connectable Web Parts 209 Supporting AJAX 215 Connectable Web Parts with AJAX 217 Silverlight and External Applications . 220 Asynchronous Programming 223 XSLT Rendering 226 Deployment, Security, and Versioning 233 Deployment and Versioning . 233 SafeControls and Cross-Site-Scripting SafeGuard . 236 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 Part IV Extending Microsoft SharePoint 2010 8 SharePoint Features and Solutions 241 Features and Solutions . 241 Feature Element Types . 246 Features and Solutions Deployment 248 Packaging with Visual Studio 2010 254 Upgrading Solutions and Features . 256 Feature Receivers 259 Handling FeatureUpgrading Events . 262 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264 Download at Pin5i.Com Table of Contents xi 9 Extending the User Interface . 265 Custom Actions 265 The CustomAction Element . 265 The CustomActionGroup Element 273 The HideCustomAction Element . 275 Server-Side Custom Actions 276 Ribbons . 279 Ribbon Command . 279 Delegate Controls . 291 Custom Contents . 295 Images and Generic Content 295 Application Pages . 297 Content Pages, Web Part Pages, and Galleries 299 Status Bar and Notification Area 305 Dialog Framework . 309 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 10 Data Provisioning . 315 Site Columns 315 Content Types 320 Content Type IDs . 323 More about Content Types . 326 Document Content Types 328 List Definitions . 329 List Schema File . 329 Defining a Custom View 339 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 11 Developing Custom Fields 345 Fields Type Basics 345 The SPField Class . 347 Developing Custom Field Types . 349 A Basic E-Mail Field Type . 349 A Multicolumn Field Type 354 Field Rendering Control . 358 Field Rendering Templates 361 Field Rendering Using CAML 365 Field Rendering Using XSLT 367 Download at Pin5i.Com xii Table of Contents Supporting Mobile Devices . 369 Field Rendering Mobile Templates 374 Custom Field Editor 376 Custom Properties Persistence . 381 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 12 Event Receivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 Types of Receivers . 385 Item-Level Event Receivers 386 List-Level Event Receivers 391 Web-Level Event Receivers 393 Workflow Event Receivers 394 E-Mail Event Receivers 395 Avoiding Event Loops . 396 Event Deployment and Binding 397 Event Synchronization 398 Event Security 400 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400 13 Document Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401 Document Sets 401 Provisioning Document Sets . 403 Handling Document Sets by Code . 410 Document ID 411 Custom Document ID Provider 414 File Conversion Services . 417 Word Automation Services . 417 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422 14 Site Templates 423 Native Site Definitions 424 Site Definitions . 428 Site Definitions with Visual Studio 431 Custom Web Templates . 439 Site Definitions versus Web Templates 444 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .444 Download at Pin5i.Com Table of Contents xiii 15 Developing Service Applications . 445 Service Application Architecture 445 Service Application Framework 449 Creating a Service Application 449 Custom Protocol Service Application 450 Solution Outline 453 Service Application . 454 Service Application Database . 456 Service 458 Service Instance 465 Administrative Pages 466 Service Application Deployment 467 Service Application Proxy 469 Service Application Consumer 473 Service Application Proxy Deployment 473 Final Thoughts . 474 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 Part V Developing Workflows 16 SharePoint Workflows Architecture 479 Workflow Foundation Overview . 479 Workflow Foundation Architecture . 479 Workflow Types . 483 Workflows Definition 484 Custom Activities 486 Workflow Execution Model . 489 Workflows in SharePoint 489 Workflow Targets and Association 491 SharePoint 2010 Custom Activities 492 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494 17 Workflows with SharePoint Designer 2010 495 SharePoint Designer 2010 Workflows 495 Workflow Designer . 496 Conditions and Actions 498 Structure of a Published Workflow 502 Download at Pin5i.Com xiv Table of Contents Designing a Workflow 502 Workflow Outline Definition . 503 Workflow Settings 507 Workflow User Experience 508 Visio 2010 Integration 510 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 18 Workflows with Visual Studio 2010 . 515 Workflow Modeling 515 Creating the Workflow Project . 515 Workflow Outline 519 Correlation Tokens 533 Site Workflows . 534 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534 19 Workflow Forms . 535 Management Forms 535 Association Form 537 Initiation Form . 544 Modification Form 547 Task Forms 547 Workflow Tasks 547 Forms Deployment . 553 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554 20 Advanced Workflows 555 Custom Actions and Conditions . 555 Dependency Properties . 555 Custom Actions for SharePoint Designer 2010 557 Custom Conditions for SharePoint Designer 2010 563 Workflow Event Receivers 565 Workflow Services . 566 Implementing the Service . 568 Workflow Service Deployment . 573 Communication Activities 575 Workflow Management by Code . 576 Workflow Server Object Model 576 Workflow Web Service . 579 Download at Pin5i.Com Table of Contents xv SPTimer Service and Workflows . 585 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586 Part VI Security Infrastructure 21 Authentication and Authorization Infrastructure 589 Authentication Infrastructure 589 Classic Mode Authentication 590 Claims-Authentication Types . 592 Configuring FBA with SQL Membership Provider . 597 Configuring the SQL Server Database . 597 Authorization Infrastructure 603 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606 22 Claims-Based Authentication and Federated Identities . 607 Claims-Based Authentication and WS-Federation 607 Implementing an STS with Windows Identity Foundation 611 Building a Security Token Service 611 Building a Relying Party 617 SharePoint Trusted Identity Providers . 621 Trusting the IP/STS 622 Configuring the Target Web Application 625 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627 23 Code Access Security and Sandboxed Solutions . 629 Code Access Security 629 Partially Trusted ASP.NET Code 631 Sandboxed Solutions Overview 639 Sandboxed Solutions Architecture . 640 Creating a Sandboxed Solution 645 Implementing a Solution Validator 647 Full-Trust Proxies . 650 Implementing a Full-Trust Proxy 651 Registering the Full-Trust Proxy 652 Consuming the Full-Trust Proxy . 654 Sandboxed Solutions and Office 365 655 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656 Download at Pin5i.Com xvi Table of Contents Part VII Enterprise Features 24 Programming the Search Engine . 659 Search Engine Overview for Developers . 659 Customizing and Extending the User Interface . 662 Customizing the Output via XSLT 664 Developing Custom Web Parts 668 Federation Framework . 670 Implementing a Custom Federation Provider 674 Using the Search Engine by Code 678 Federated Search Object Model 678 Query Object Model 681 Query Web Service . 684 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 25 Business Connectivity Services 689 Overview of Business Connectivity Services . 689 Accessing a Database . 691 BDC Model File 700 Offline Capabilities 703 Accessing a WCF/SOAP Service 705 .NET Custom Model 710 Developing a Custom Model from Scratch 712 Associating Entities . 719 Programming with BCS Object Model 721 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723 Index . 725
The professional programmer’s Deitel® guide to C# 6 and object-oriented development for Windows® Written for programmers with a background in high-level language programming, C# 6 for Programmers applies the Deitel signature live-code approach to teaching programming and explores Microsoft’s C# 6 and .NET in depth. Concepts are presented in the context of 170+ fully coded and tested apps, complete with syntax shading, code highlighting, code walkthroughs, program outputs and hundreds of savvy software-development tips. Start with an introduction to C# using an early classes and objects approach, then rapidly move on to more advanced topics, including LINQ, asynchronous programming with async and await and more. You’ll enjoy the treatment of object-oriented programming and an object-oriented design/UML® ATM case study, including a complete C# implementation. When you’ve mastered the book, you’ll be ready to start building industrial-strength, object-oriented C# apps. Paul Deitel and Harvey Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages authoring and corporate training organization. Millions of people worldwide have used Deitel textbooks, professional books, LiveLessons™ video products, e-books, resource centers and REVEL™ interactive multimedia courses with integrated labs and assessment to master major programming languages and platforms, including C#, C++, C, Java™, Android™ app development, iOS app development, Swift™, Visual Basic®, Python™ and Internet and web programming. Features: Use with Windows® 7, 8 or 10. Integrated coverage of new C# 6 functionality: string interpolation, expression-bodied methods and properties, auto-implemented property initializers, getter-only properties, nameof, null-conditional operator, exception filters and more. Entertaining and challenging code examples. Deep treatment of classes, objects, inheritance, polymorphism and interfaces. Generics, LINQ and generic collections; PLINQ (Parallel LINQ) for multicore performance. Asynchronous programming with async and await; functional programming with lambdas, delegates and immutability. Files; relational database with LINQ to Entities. Object-oriented design ATM case study with full code implementation. Emphasis on performance and software engineering principles. Visit www.deitel.com Download code examples For Deitel’s programming training courses, www.deitel.com/training or write to deitel@deitel.com Join the Deitel social networking communities: Facebook® at facebook.com/DeitelFan Twitter® at twitter.com/deitel LinkedIn® at bit.ly/DeitelLinkedIn YouTube™ at youtube.com/DeitelTV Google+™ at google.com/+DeitelFan Subscribe to the Deitel® Buzz e-mail newsletter at www.deitel.com/newsletter/subscribe.html Table of Contents Chapter 1 Introduction Chapter 2 Introduction to Visual Studio and Visual Programming Chapter 3 Introduction to C# App Programming Chapter 4 Introduction to Classes, Objects, Methods and strings Chapter 5 Control Statements: Part 1 Chapter 6 Control Statements: Part 2 Chapter 7 Methods: A Deeper Look Chapter 8 Arrays; Introduction to Exception Handling Chapter 9 Introduction to LINQ and the List Collection Chapter 10 Classes and Objects: A Deeper Look Chapter 11 Object-Oriented Programming: Inheritance Chapter 12 OOP: Polymorphism and Interfaces Chapter 13 Exception Handling: A Deeper Look Chapter 14 Graphical User Interfaces with Windows Forms: Part 1 Chapter 15 Graphical User Interfaces with Windows Forms: Part 2 Chapter 16 Strings and Characters: A Deeper Look Chapter 17 Files and Streams Chapter 18 Generics Chapter 19 Generic Collections; Functional Programming with LINQ/PLINQ Chapter 20 Databases and LINQ Chapter 21 Asynchronous Programming with async and await Appendix A: Operator Precedence Chart Appendix B: Simple Types Appendix C: ASCII Character Set
5.36 is now RTM! NEW/IMPROVED: There's now a built-in interactive RegEx utility! Press Ctrl+Shift+F1, or choose the option on the Help menu. The utility is implemented as a LINQPad script - click on the built-in samples to view. LINQPad now includes a set of HTML controls for writing interactive queries. Unlike WPF and Windows Forms controls, these render in the same output panel as your results. To use them, just instantiate and dump them: // All the controls live in the LINQPad.Controls namespace. var txt = new TextBox().Dump(); txt.TextInput += (sender, args) => $"You typed {txt.Text}".Dump(); Click here for an interactive tutorial. The NuGet search engine now recognizes SemVer2 prerelease packages, and uses a new faster API. You can now reference NuGet packages that include only native DLLs, such as Microsoft.ChakraCore. To invoke the native methods, set the query type to 'C# Program' and declare the methods that you want to call prefixed with the appropriate DllImport attributes. LINQPad now identifies NuGet packages with duplicate extension attributes in Content_Types.xml, and automatically removes the duplicates so that the package loader will not throw an InvalidOperationException. C# 7.3 is now supported. When connecting to SQL Azure, you can now opt for Universal Active Directory authentication, with support for multi-factor authentication. There are new methods in LINQPad's Util class to load/save strings or byte arrays to a central machine store (shared between queries). These methods are Util.SaveString, Util.SaveBytes, Util.LoadString, and Util.LoadBytes. LINQPad's embedded ILSpy has now been updated to V4. You can now enable or disable compiler optimizations on a per-query basis, by starting your query with the following code: #LINQPad optimize+ // To force optimizations on for this query #LINQPad optimize- // To force optimizations off for this query In the SQL connection dialog, when you choose the 'Display all databases in TreeView' opt
asp.net 4揭秘.第1卷》 第一部分 构建asp.net页面 第1章 asp.net framework概览2 1.1 asp.net和.net framework5 1.1.1 框架类库5 1.1.2 公共语言运行库10 1.2 asp.net控件11 1.2.1 asp.net控件概览11 1.2.2 html控件12 1.2.3 理解和处理控件事件13 1.2.4 视图状态18 1.3 asp.net页面22 1.3.1 动态编译23 1.3.2 控件树25 1.3.3 使用代码隐藏页面27 1.3.4 处理页面事件30 1.3.5 使用page.ispostback属性32 1.3.6 调试和跟踪asp.net页面33 1.3.7 跟踪页面执行36 1.4 安装asp.net38 .1.5 小结40 第2章 使用标准控件41 2.1 显示信息41 2.1.1 使用label控件41 2.1.2 使用literal控件45 2.2 接收用户输入48 2.2.1 使用textbox控件48 2.2.2 使用checkbox控件54 2.2.3 使用radiobutton控件57 2.3 提交表单数据60 2.3.1 使用button控件61 2.3.2 使用linkbutton控件62 2.3.3 使用imagebutton控件65 2.3.4 button控件使用客户端脚本68 2.3.5 执行跨页面发送70 2.3.6 指定默认按钮73 2.3.7 处理command事件74 2.4 显示图像77 2.4.1 使用image控件77 2.4.2 使用imagemap控件78 2.5 使用panel控件82 2.6 使用hyperlink控件87 2.7 小结89 第3章 使用验证控件90 3.1 验证控件概述90 3.1.1 验证控件与javascript93 3.1.2 使用page.isvalid94 3.1.3 设置display属性94 3.1.4 突出显示验证错误95 3.1.5 使用验证组99 3.1.6 禁用验证103 3.2 使用requiredfieldvalidator控件104 3.3 使用rangevalidator控件108 3.4 使用comparevalidator控件109 3.5 使用regularexpressionvalidator控件114 3.6 使用customvalidator控件116 3.7 使用validationsummary控件122 3.8 创建自定义验证控件126 3.8.1 创建lengthvalidator控件127 3.8.2 创建ajaxvalidator控件129 3.9 小结134 第4章 使用rich控件135 4.1 接收上传文件135 4.1.1 把文件保存到文件系统136 4.1.2 把文件保存到数据库139 4.1.3 上传大文件142 4.2 显示日历147 4.2.1 创建弹出式日期选择器150 4.2.2 根据数据库表呈现日历152 4.3 显示广告156 4.3.1 在xml文件中保存广告157 4.3.2 在数据库表中存储广告160 4.3.3 跟踪显示和转到161 4.4 显示不同的页面视图166 4.4.1 显示选项卡式页面视图166 4.4.2 显示多部分表单168 4.5 显示向导170 4.6 显示silverlight内容174 4.7 小结177 第二部分 设计asp.net网站 第5章 使用母版页设计网站180 5.1 创建母版页180 5.1.1 创建默认内容183 5.1.2 嵌套母版页186 5.1.3 在母版页中使用图片和超链接191 5.1.4 在web配置文件中注册母版页193 5.2 修改母版页内容194 5.2.1 使用title属性194 5.2.2 使用page.header属性194 5.2.3 暴露母版页属性196 5.2.4 对母版页使用findcontrol方法198 5.3 动态加载母版页200 5.4 小结203 第6章 使用主题设计网站204 6.1 创建主题204 6.2 在主题中添加皮肤205 6.2.1 创建命名皮肤206 6.2.2 theme与stylesheetthemes208 6.2.3 禁用主题209 6.2.4 在web配置文件中注册主题211 6.3 在主题中添加css212 6.3.1 在主题中添加多个css215 6.3.2 使用css改变页面布局215 6.4 创建全局主题219 6.5 动态应用主题220 6.6 小结225 第7章 使用用户控件创建定制控件226 7.1 创建用户控件226 7.1.1 在web配置文件中注册用户控件228 7.1.2 暴露用户控件的属性229 7.1.3 暴露用户控件的事件231 7.1.4 创建addressform控件235 7.2 ajax和用户控件240 7.3 动态加载用户控件242 7.3.1 使用引用指令243 7.3.2 创建多页面向导247 7.4 小结254 第三部分 数据访问 第8章 数据访问概述256 8.1 使用databound控件256 8.1.1 使用列表控件256 8.1.2 使用表格式databound控件259 8.1.3 使用层次databound控件262 8.1.4 使用其他数据绑定控件264 8.2 使用datasource控件266 8.3 使用编程式数据绑定270 8.4 模板和数据绑定表达式272 8.4.1 使用模板272 8.4.2 使用数据绑定表达式275 8.4.3 使用双向数据绑定表达式278 8.5 sql server 2008 express概述280 8.5.1 sql server express 特性280 8.5.2 sql server 2008 express管理工具281 8.5.3 服务器端数据库与本地数据库282 8.6 数据库驱动的web应用程序示例284 8.7 小结287 第9章 使用sqldatasource控件288 9.1 创建数据库连接289 9.1.1 连接到microsoft sql server289 9.1.2 连接到其他数据库292 9.1.3 在web配置文件中保存连接字符串293 9.1.4 对连接字符串加密294 9.2 执行数据库命令296 9.2.1 执行内联sql语句296 9.2.2 执行存储过程298 9.2.3 过滤数据库行300 9.2.4 改变数据源模型302 9.2.5 处理sql命令执行错误303 9.2.6 取消sql命令执行306 9.3 在sqldatasource控件中使用asp.net参数308 9.3.1 使用asp.net参数对象308 9.3.2 使用asp.net的controlparameter对象311 9.3.3 使用asp.net的cookieparameter对象315 9.3.4 使用asp.net的formparameter对象317 9.3.5 使用asp.net的profileparameter对象319 9.3.6 使用querystringparameter对象320 9.3.7 使用sessionparameter对象322 9.4 通过程序执行sqldatasource命令323 9.4.1 添加ado.net参数324 9.4.2 执行insert、update和delete命令325 9.4.3 执行select命令327 9.5 使用sqldatasource控件缓存数据库数据330 9.6 小结332 第10章 使用列表控件333 10.1 列表控件概述333 10.1.1 声明列表项333 10.1.2 绑定到数据源335 10.1.3 确定被选中的列表项338 10.1.4 追加数据项342 10.1.5 启用自动回传343 10.1.6 使用列表项集合345 10.2 使用dropdownlist控件348 10.3 使用radiobuttonlist控件350 10.4 使用listbox控件351 10.5 使用checkboxlist控件355 10.6 使用bulletedlist控件357 10.7 创建自定义的列表控件361 10.8 小结368 第11章 使用gridview控件369 11.1 gridview控件基础369 11.1.1 显示数据369 11.1.2 选择数据372 11.1.3 使用数据键374 11.1.4 数据排序376 11.1.5 数据分页381 11.1.6 编辑数据388 11.1.7 显示空数据391 11.1.8 格式化gridview控件395 11.1.9 在gridview控件中使用viewstate397 11.2 在gridview控件中使用字段398 11.2.1 使用boundfield398 11.2.2 使用checkboxfield401 11.2.3 使用commandfield402 11.2.4 使用buttonfield404 11.2.5 使用hyperlinkfield407 11.2.6 使用imagefield411 11.2.7 使用templatefield414 11.3 gridview控件的事件417 11.3.1 突出显示gridview行417 11.3.2 显示列汇总419 11.3.3 显示嵌套的主从表单421 11.4 扩展gridview控件424 11.4.1 创建长文本字段424 11.4.2 创建删除按钮字段428 11.4.3 创建验证字段430 11.5 小结432 第12章 使用detailsview控件和formview控件433 12.1 使用detailsview控件433 12.1.1 使用detailsview控件显示数据433 12.1.2 在detailsview控件中使用字段436 12.1.3 使用detailsview控件显示空数据437 12.1.4 使用detailsview控件对数据分页439 12.1.5 使用detailsview控件更新数据445 12.1.6 使用detailsview控件插入数据452 12.1.7 使用detailsview控件删除数据455 12.1.8 detailsview控件的事件456 12.1.9 格式化detailsview控件459 12.2 使用formview控件461 12.2.1 使用formview控件显示数据461 12.2.2 使用formview控件对数据分页463 12.2.3 使用formview控件编辑数据467 12.2.4 使用formview控件插入数据470 12.2.5 使用formview控件删除数据473 12.3 小结475 第13章 使用repeater控件和datalist控件476 13.1 使用repeater控件476 13.1.1 使用repeater控件显示数据476 13.1.2 在repeater控件中使用模板479 13.1.3 repeater控件的事件处理484 13.2 使用datalist控件490 13.2.1 使用datalist控件显示数据490 13.2.2 在多列中显示数据492 13.2.3 在datalist控件中使用模板494 13.2.4 使用datalist控件选择数据496 13.2.5 使用datalist控件编辑数据499 13.2.6 格式化datalist控件503 13.3 小结505 第14章 使用listview和datapager控件506 14.1 使用listview控件506 14.1.1 使用layouttemplate和itemtemplate507 14.1.2 使用grouptemplate510 14.1.3 选择一行512 14.1.4 数据库数据排序515 14.1.5 编辑数据库数据516 14.2 使用datapager控件522 14.2.1 创建自定义分页用户界面524 14.2.2 使用datapager控件进行数据源分页526 14.3 小结527 第15章 使用chart控件528 15.1 chart控件的基础知识528 15.1.1 使用chart控件显示数据528 15.1.2 排序和过滤数据532 15.1.3 统计公式534 15.2 定制图表的外观539 15.2.1 定制背景和绘图区540 15.2.2 3d图表543 15.3 多级报告543 15.4 小结544 第16章 使用queryextender控件545 16.1 queryextender控件介绍545 16.2 使用声明性语法查询数据545 16.2.1 使用controlfilter- expression进行查询545 16.2.2 使用customexpression进行查询546 16.2.3 使用dynamicfilter- expression进行查询546 16.2.4 使用methodexpression进行查询546 16.2.5 使用orderbyexpression进行排序547 16.2.6 使用propertyexpression进行查询547 16.2.7 使用rangeexpression进行查询548 16.2.8 使用searchexpression进行查询548 16.3 使用queryextender控件创建示例页面549 16.4 小结551 第四部分 创建组件 第17章 创建组件554 17.1 创建基本组件554 17.1.1 组件和动态编译556 17.1.2 app_code文件夹中不同语言的组件557 17.1.3 声明方法557 17.1.4 声明字段和属性559 17.1.5 声明构造函数563 17.1.6 重载方法和构造函数564 17.1.7 声明命名空间565 17.1.8 创建部分类566 17.1.9 继承和abstract类567 17.1.10 声明接口569 17.1.11 使用访问修饰符570 17.1.12 智能提示和组件571 17.1.13 在组件中使用asp.net内部对象573 17.2 创建组件库575 17.2.1 编译组件库575 17.2.2 向类库中添加引用578 17.3 架构思考581 17.3.1 创建多层应用程序581 17.3.2 创建用户界面层581 17.3.3 创建业务逻辑层584 17.3.4 创建数据访问层587 17.4 小结591 第18章 使用objectdatasource 控件592 18.1 使用objectdatasource控件表示对象592 18.1.1 绑定到组件593 18.1.2 绑定到datareader594 18.1.3 绑定到dataset596 18.1.4 绑定到linq to sql查询597 18.1.5 绑定到web服务598 18.2 使用objectdatasource控件与参数601 18.2.1 使用不同的参数类型604 18.2.2 作为参数传递对象607 18.3 使用objectdatasource控件分页、排序和过滤数据610 18.3.1 用户界面分页611 18.3.2 数据源分页613 18.3.3 用户界面排序618 18.3.4 数据源排序620 18.3.5 过滤数据624 18.4 处理objectdatasource控件的事件628 18.4.1 添加和修改参数628 18.4.2 处理方法的执行错误631 18.4.3 处理objectcreating事件635 18.5 objectdatasource控件与并发访问636 18.6 扩展objectdatasource控件639 18.6.1 创建自定义的objectdata- source控件639 18.6.2 创建自定义参数对象642 18.7 小结647 第19章 用ado.net创建数据访问 组件648 19.1 连接模式数据访问649 19.1.1 使用connection对象652 19.1.2 使用command对象660 19.1.3 使用datareader对象677 19.2 非连接模式数据访问683 19.2.1 使用dataadapter对象684 19.2.2 使用datatable对象689 19.2.3 使用dataview对象696 19.2.4 使用dataset对象699 19.3 执行异步数据库命令701 19.3.1 使用异步ado.net方法701 19.3.2 使用异步asp.net页面703 19.4 使用.net framework创建数据库对象706 19.4.1 启用clr集成706 19.4.2 使用.net framework创建用户自定义类型707 19.4.3 使用用户自定义类型创建数据访问层710 19.4.4 使用.net framework创建存储过程713 19.4.5 创建存储过程程序集714 19.5 小结718 第20章 使用linq to sql访问数据库720 20.1 c#和vb.net的新特性720 20.1.1 理解自动属性721 20.1.2 理解初始化器721 20.1.3 理解类型推断723 20.1.4 理解匿名类型724 20.1.5 理解泛型724 20.1.6 理解lambda表达式726 20.1.7 理解扩展方法729 20.1.8 理解linq730 20.2 创建linq to sql实体732 20.2.1 手工创建实体732 20.2.2 使用linq to sql designer创建实体735 20.2.3 构建实体关联737 20.2.4 使用linqdatasource控件738 20.3 使用linq to sql执行标准数据库命令741 20.3.1 linq to objects与linq to sql741 20.3.2 使用linq to sql进行选择742 20.3.3 使用linq to sql进行插入748 20.3.4 使用linq to sql进行更新751 20.3.5 使用linq to sql进行删除754 20.3.6 动态查询755 20.3.7 调试linq to sql759 20.4 创建自定义的linq实体基类761 20.4.1 使用实体基类762 20.4.2 使用entitybase类执行标准数据访问操作762 20.4.3 用entitybase类执行验证764 20.5 小结768 第21章 包含wcf数据服务的数据访问769 21.1 wcf数据服务概述769 21.2 使用包含service reference的数据服务770 21.3 使用包含数据上下文的数据服务773 21.4 小结775 第五部分 站点导航 第22章 使用导航控件778 22.1 理解站点地图778 22.2 使用sitemappath控件780 22.3 使用menu控件785 22.3.1 声明式添加menu条目785 22.3.2 组合使用menu控件和multiview控件788 22.3.3 绑定到站点地图791 22.3.4 绑定到xml文件794 22.3.5 绑定到数据库数据797 22.3.6 定制menu控件800 22.3.7 使用menu控件的模板806 22.4 使用treeview控件808 22.4.1 声明式地添加树视图节点808 22.4.2 在treeview控件中显示复选框812 22.4.3 绑定到站点地图814 22.4.4 绑定到xml文件815 22.4.5 绑定到数据库数据817 22.4.6 使用延时加载和ajax820 22.4.7 定制treeview控件824 22.5 创建分层的sql数据源控件830 22.6 小结832 第23章 使用站点地图834 23.1 使用sitemapdatasource控件834 23.2 使用sitemap类840 23.3 高级站点地图配置844 23.3.1 使用安全修整844 23.3.2 合并多个站点地图848 23.3.3 创建自定义的站点地图属性850 23.4 创建自定义站点地图提供程序851 23.4.1 创建autositemapprovider852 23.4.2 创建sqlsitemapprovider856 23.5 创建google的sitemap文件860 23.6 小结863 第24章 高级页面导航865 24.1 重映射url865 24.2 使用virtualpathprovider类872 24.2.1 virtualpathprovider类的局限性873 24.2.2 理解virtualpathprovider类873 24.2.3 注册virtualpathprovider类874 24.3 小结875 第25章 使用asp.net的url路由引擎876 25.1 url路由介绍876 25.2 基础url路由方案877 25.2.1 映射基础url877 25.2.2 映射包含参数的url878 25.2.3 映射包含多个段的url879 25.2.4 通过路由链接到其他页面879 25.3 高级url路由880 25.3.1 使用包含默认参数的路由880 25.3.2 使用约束路由881 25.3.3 路由的安全问题882 25.4 小结882

12,798

社区成员

发帖
与我相关
我的任务
社区描述
CSDN 下载资源悬赏专区
其他 技术论坛(原bbs)
社区管理员
  • 下载资源悬赏专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧