Product Overview
The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks
Table of Contents
- Here’s a look at the table of contents:
- Preface
- Who Should Read this Book?
- What’s Covered in this Book?
- The Book’s Web Site
- The Code Archive
- Updates and Errata
- The SitePoint Forums
- The SitePoint Newsletters
- Your Feedback
- Conventions Used in this Book
- Code Samples
- Tips, Notes, and Warnings
- Introductory Topics
- Which web project model should I choose?
- How do I deploy my web site?
- How do I choose a third-party web host?
- How do I use source control?
- How do I go about using open source code?
- Where can I find more information about ASP.NET?
- Summary
- .NET 2.0 Core Libraries
- How do I use strings?
- How do I display an object as a string?
- How do I display formatted strings?
- How do I use generics?
- How do I filter items in a generic collection?
- How can I get more use out of my custom logic?
- How do I convert generic lists to specific classes?
- How do I concatenate delimited strings from object properties?
- How do I batch operations with large collections?
- How do I choose the right collection?
- Summary
- Data Access
- How can I get started using ADO.NET?
- How do I configure my database connection?
- How do I read data from my database?
- How do I sort and filter data?
- How do I fill a DropDownList from a database table?
- How can I perform data binding without having to write all that repetitive code?
- How do I display the contents of a database table?
- How do I allow the modification of a single record?
- How can I data bind without using the
SqlDataSource? - Summary
- Pushing the Boundaries of the
GridView- How do I add a data-bound drop-down to a
GridView? - How do I sort on multiple columns?
- How do I display the sort state?
- How do I implement custom paging?
- How can I allow users to download tabular data as a Microsoft Excel file?
- Summary
- How do I add a data-bound drop-down to a
- Form Validation
- How do I validate form input?
- How do I validate multiple forms?
- How do I set up custom validation?
- How do I perform custom client-side validation?
- How do I build my own validator control?
- How do I perform client-side validation with my custom validator control?
- Summary
- Maintaining State
- How do I maintain per-request state in a web application?
- How can I maintain session state in a web farm using a state server?
- How can I maintain session state in a web farm using a database?
- Where should I store application state?
- What’s the cleanest way to access a page’s view state?
- How can I make sure my custom control works when view state is turned off?
- Summary
- Membership and Access Control
- What’s the easiest way to add membership to my site?
- How do I allow users to register for my site?
- How do I manage users on my site?
- How do I require users to log in?
- How do I grant access to users who have forgotten their passwords?
- How do I display content based on roles?
- Summary
- Component-based Development
- How can I use master pages?
- How can my content page override data on my master page?
- How can I have my master page interact with my content page?
- How do I use URLs in a master page?
- How do I modify header elements in a master page?
- How do I use themes effectively in conjunction with CSS?
- How do I treat user controls as components?
- How do I embed resources into my components?
- Summary
- ASP.NET and Web Standards
- What are all these
spantags doing in my HTML output? - How do I obtain DataList-style functionality
without using a
table? - How do I use ASP.NET’s fancy menus without the fancy HTML?
- How do I make sense of the CSS maze produced by the CSS Friendly menu?
- Summary
- What are all these
- Ajax and JavaScript
- How can I write better JavaScript?
- How can libraries make writing robust, cross-platform JavaScript easier?
- How do I use Microsoft's ASP.NET AJAX?
- How do I perform partial page rendering?
- How do I show progress during a partial page render?
- How do I periodically refresh an UpdatePanel?
- How do I work with generated IDs?
- Where can I get some fancy ASP.NET controls?
- How can I debug JavaScript?
- Summary
- Working with Email
- How do I send a plain-text email?
- How do I send an HTML email?
- How do I attach a file to my email?
- How do I send personalized form letters?
- How do I allow users to submit content via email?
- How do I send an email without waiting for it to complete?
- Summary
- Rendering Binary Content
- How do I write binary content?
- How do I write raw data to the response?
- How do I request an HttpHandler?
- How do I write non-text binary data?
- How do I render simple bars?
- How do I create a real bar graph handler?
- How can I improve the quality of my dynamic images?
- How can I use a handler to control access to the images on my site?
- Summary
- Handling Errors
- How can I handle exceptions in my code?
- How can I handle errors in my web site?
- How can I use a pre-built exception handling strategy?
- What’s the best way to write a log file?
- How do I debug log4net?
- How do I perform tracing?
- Summary
- Configuration
- How do I store and retrieve basic settings?
- How do I store connection strings?
- How do I retrieve settings declaratively?
- How do I create a custom configuration section?
- How can I simplify my Web.config file?
- How can I manage Web.config values between deployment environments?
- How can I encrypt a section of my Web.config file?
- Summary
- Performance and Scaling
- How do I determine what to optimize?
- How can I decrease the size of the view state?
- How can I decrease the bandwidth that my site uses?
- How can I improve the speed of my site?
- How do I refresh my cache when the data changes?
- How can I gain more control over the ASP.NET cache?
- How do I speed up my database queries?
- How can I troubleshoot a slow query?
- Summary
- Search Engine Optimization
- How does Google rank pages?
- How do I ensure search engines review only search-relevant content?
- How do I rewrite my URLs for human readability?
- How do I ensure my web pages are visible to search engines?
- How do I ensure my web pages produce descriptive search results?
- Summary
- Advanced Topics
- How can I tell what’s going on behind the scenes?
- How do I build a screen scraper?
- How do I build a data access layer?
- How do I automatically generate a data access layer?
- Summary
- Index




