Book description
Get the practical, popular reference written by ASP.NET authority Dino Esposito now updated for ASP.NET 3.5. An in-depth guide to the core features of Web development with ASP.NET, this book goes beyond the fundamentals. It expertly illustrates the intricacies and uses of ASP.NET 3.5 in a single volume. Part of Microsoft Visual Studio(r) 2008, ASP.NET 3.5 includes AJAX functionality, the Microsoft Silverlight cross-platform development tool, new controls, and new integration features. This pragmatic guide covers these new features, and also includes coverage of Windows(r) Communication Foundation, LINQ, and other key Microsoft .NET Framework 2.0, 3.0, and 3.5 capabilities. Complete with extensive code samples and code snippets in Microsoft Visual C# 2008, this is the ideal reference for developers who want to learn what s new in ASP.NET 3.5, or for those building professional-level Web development skills.
Table of contents
-
Programming Microsoft ASP.NET 3.5
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Acknowledgements
- Introduction
-
I. Building an ASP.NET Page
- 1. The ASP.NET Programming Model
-
2. Web Development in Microsoft Visual Studio 2008
-
Introducing Visual Studio 2008
- Visual Studio Highlights
- Multiple Ways to Access Web Sites
- Project Output Build Options
- Copying a Web Project
- Smarter Editing with Microsoft IntelliSense
- Visual Studio 2008–Specific New Features
- Multitarget Projects
- The JavaScript Debugger
- CSS Designer
- New Language Features
- Extension Methods
- Object Initializers
- Type Inference and Anonymous Types
- LINQ Operators
-
Create an ASP.NET Web Site Project
- Page Design Features
- Master Pages
- Nested Master Pages
- Content Pages
- Code-Behind Classes
- The Toolbox of Controls
- Editor's Special Capabilities
- Code Refactoring
- Import/Export of IDE Features
- Adding Code to the Project
- Defining Event Handlers
- Writing Helper Classes
- Building a Sample Shared Class
- ASP.NET Protected Folders
- Additional Application Directories
- The Resource Directories
- Available Themes
- Build the ASP.NET Project
- Debugging Features
- Application Deployment
- Administering an ASP.NET Application
- Conclusion
-
Introducing Visual Studio 2008
-
3. Anatomy of an ASP.NET Page
- Invoking a Page
-
The Page Class
- Properties of the Page Class
- Intrinsic Objects
- Worker Properties
- Context Properties
- Methods of the Page Class
- Rendering Methods
- Controls-Related Methods
- Script-Related Methods
- Events of the Page Class
- The Eventing Model
- Introducing the View State
- The Single Form Model
- Asynchronous Pages
- Building a Sample Asynchronous Page
- Choosing the Right Approach
- The Page Life Cycle
- Conclusion
-
4. ASP.NET Core Server Controls
- Generalities of ASP.NET Server Controls
- HTML Controls
-
Web Controls
- Generalities of Web Controls
- Properties of Web Controls
- Styling Web Controls
- Managing the Style of Web Controls
- Methods of Web Controls
- Core Web Controls
- Button Controls
- HyperLinks
- Images and Image Buttons
- Check Boxes and Radio Buttons
- Scrollable Panels
- Text Controls
- Hidden Fields and File Upload
- Miscellaneous Web Controls
- View Controls
- Validation Controls
- Conclusion
- 5. Working with the Page
-
6. Rich Page Composition
- Working with Master Pages
- Working with Themes
- Working with Wizards
- Conclusion
-
II. Adding Data in an ASP.NET Site
-
7. ADO.NET Data Providers
-
.NET Data Access Infrastructure
- .NET Managed Data Providers
- Building Blocks of a .NET Data Provider
- Interfaces of a .NET Data Provider
- Managed Providers vs. OLE DB Providers
- Data Sources You Access Through ADO.NET
- Accessing SQL Server
- Accessing Oracle Databases
- Using OLE DB Providers
- Using ODBC Drivers
- The Provider Factory Model
- Instantiating Providers Programmatically
- Enumerating Installed Data Providers
- Database-Agnostic Pages
-
Connecting to Data Sources
- The SqlConnection Class
- Changing Passwords
- Accessing Schema Information
- Connection Strings
- Configuring Connection Properties
- Connection String Builders
- Storing and Retrieving Connection Strings
- Protecting Connection Strings
- Connection Pooling
- Configuring Pooling
- Getting and Releasing Objects
- Detecting Connections Leaks
- Managing Connection Lifetime
- Clearing the Connection Pool
- Executing Commands
- Conclusion
-
.NET Data Access Infrastructure
- 8. ADO.NET Data Containers
-
9. The Data-Binding Model
- Data Source-Based Data Binding
- Data-Binding Expressions
-
Data Source Components
- Overview of Data Source Components
- Internals of Data Source Controls
- Data Source Views
- Interaction with Data-Bound Controls
- Hierarchical Data Source Views
- The SqlDataSource Control
- Declarative Parameters
- Conflicts Detection
- Caching Behavior
- The AccessDataSource Class
- Working with an Access Database
- Updating an Access Database
- The ObjectDataSource Control
- Implementing Data Retrieval
- Using Parameters
- Caching Data and Object Instances
- Setting Up for Paging
- Updating and Deleting Data
- Configuring Parameters at Runtime
- The LinqDataSource Class
- What's Linq-to-SQL, Anyway?
- Selecting, Sorting, and Filtering Data
- Updating Data
- The SiteMapDataSource Class
- Displaying Site Map Information
- The XmlDataSource Class
- Displaying XML Data
- Conclusion
- 10. The Linq-to-SQL Programming Model
-
11. Creating Bindable Grids of Data
- The DataGrid Control
-
The GridView Control
- The GridView Object Model
- Simple Data Binding
- Binding Data to a GridView Control
- Configuring Columns
- Bound Fields
- Button Fields
- HyperLink Fields
- CheckBox Fields
- Image Fields
- Templated Fields
- Paging Data
- Codeless Data Paging
- Moving the Burden of Paging to the DAL
- Paging Algorithms
- Configuring the Pager
- Sorting Data
- Codeless Data Sorting
- Moving the Burden of Sorting to the DAL
- Give Users Feedback
- Using Callbacks for Paging and Sorting
- Editing Data
- In-Place Editing and Updates
- Deleting Displayed Records
- Inserting New Records
- Advanced Capabilities
- Executing an Operation on a Given Row
- Selecting a Given Row
- Row Customization
- Conclusion
-
12. Managing a List of Records
-
The ListView Control
- The ListView Object Model
- Compared to Other View Controls
- Defining the Layout of the List
- Building a Tabular Layout
- Definition of the Overall Layout
- Definition of the Item Template
- Using Alternate Rendering for Data Items
- Reflecting On the Table Layout
- Building a Flow Layout
- Definition of the Overall Layout
- Building a Tiled Layout
- Using the Group Separator Template
- Modifying the Group Item Count Dynamically
- Data-Driven Group Templates
- Styling the List
- Style Properties
- Using Cascading Style Sheets
-
Working with the ListView Control
- In-Place Editing
- Defining the Edit Item Template
- Adding Predefined Command Buttons
- Conducting the Update
- Deleting an Existing Record
- Showing a Message Box upon Completion
- Inserting New Data Items
- Setting Up the Insert Item Template
- Adding a Bit of Validation
- Selecting an Item
- Triggering the Selection
- Paging the List of Items
- Configuring the Data Pager Fields
- Pageable Containers
- Conclusion
-
The ListView Control
- 13. Managing Views of a Record
-
7. ADO.NET Data Providers
-
III. ASP.NET Infrastructure
- 14. The HTTP Request Context
-
15. ASP.NET State Management
- The Application's State
- The Session's State
-
Working with a Session's State
- Identifying a Session
- Generating the Session ID
- Session Cookies
- Cookieless Sessions
- Issues with Cookieless Sessions
- Cookieless Sessions and Security
- Configuring the Session State
- Lifetime of a Session
- Why Does My Session State Sometimes Get Lost?
- Persist Session Data to Remote Servers
- State Serialization and Deserialization
- Storing Session Data
- Persist Session Data to SQL Server
- Performance and Robustness
- Configuring Session State for SQL Server Support
- Creating the SQL Server Data Store
- Reverting to the Hosting Identity
- Customizing Session State Management
-
The View State of a Page
- The StateBag Class
- View State Properties
- View State Methods
- Common Issues with View State
- Encrypting and Securing
- Machine Authentication Check
- Size Thresholds and Page Throughput
- Programming Web Forms Without View State
- Disabling View State
- Determining When to Disable View State
- Changes in the ASP.NET View State
- The Serialization Format
- The Control State
- Programming the Control State
- Keeping the View State on the Server
- Creating a View-State-Less Page
- Conclusion
-
16. ASP.NET Caching
- Caching Application Data
- Caching ASP.NET Pages
- Conclusion
-
17. ASP.NET Security
- Where the Threats Come From
- The ASP.NET Security Context
- Using Forms Authentication
- The Membership and Role Management API
- Security-Related Controls
- Conclusion
- 18. HTTP Handlers and Modules
-
IV. ASP.NET AJAX Extensions
-
19. Partial Rendering: The Easy Way to AJAX
- The ASP.NET AJAX Infrastructure
- Selective Page Updates with Partial Rendering
- The AJAX Control Toolkit
- Conclusion
-
20. AJAX-Enabled Web Services
- Implementing the AJAX Paradigm
- Web Services for ASP.NET AJAX Applications
- WCF Services for ASP.NET AJAX Applications
- Remote Calls via Page Methods
- Conclusion
-
21. Silverlight and Rich Internet Applications
- Silverlight Fast Facts
-
Hosting Silverlight in Web Pages
- The Silverlight Engine
- The Silverlight Object
- The Script-Behind File
- Embedding the Silverlight Object
- Checking the Installed Version
- Instantiating the Silverlight Object
- Initialization of the Plug-in
- Error Handling
- Defining XAML Content
- Downloading XAML Documents
- Inline XAML
- Dynamically Generated XAML
- The XAML Syntax in Silverlight
- Syntax Highlights
- The Canvas Object
- Graphics and Shapes
- Clipping and Transforming
- Animation
- Text
- Multimedia
-
The Silverlight Object Model
- Silverlight Programming Fundamentals
- Referencing Objects
- The Silverlight Eventing Model
- Writing Event Handlers
- Accessing Properties of XAML Elements
- Scripting and Animation Together
- Resizing the Silverlight Area
- Introducing Silverlight 2.0
- The Visual Studio 2008 Template Project
- The XAML Code-Behind Class
- The Object Model
- Reading and Writing Properties
- Accessing the HTML DOM
- Conclusion
-
19. Partial Rendering: The Easy Way to AJAX
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: Programming Microsoft® ASP.NET 3.5
- Author(s):
- Release date: February 2008
- Publisher(s): Microsoft Press
- ISBN: 9780735625273
You might also like
book
ASP.NET 3.5 Website Programming: Problem-Design-Solution
Uses the popular Problem;Design;Solution format to help readers, especially those who know how to code specific …
book
Ultra-Fast ASP.NET 4.5
Ultra-Fast ASP.NET 4.5 presents a practical approach to building fast and scalable web sites using ASP.NET …
book
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition
The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 3.5 …
book
Programming Microsoft® ASP.NET 4
Completely reengineered for ASP.NET 4—this definitive guide deftly illuminates the core architecture and programming features of …