ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas
This page lists some of the more popular “ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas” posts I’ve done. My goal is to add new posts to the series regularly going forward – so bookmark this page for updates, or subscribe to my blog via this RSS feed.
Book Recommendations
In addition to my articles below, I highly recommend the following ASP.NET books:
To learn more about ASP.NET, also make sure to watch all of the great “ASP.NET: How Do I?” videos (each week a new video is posted). You can also browse a large listing of other ASP.NET 2.0 books here.
Visual Studio 2005
- Tip/Trick: Optimizing ASP.NET 2.0 Web Project Build Performance with VS 2005
- Common Gotcha: Slow VS 2005 Web Site Build Performance Because of “Dueling Assembly References”
- Common Gotcha: Public Hotfix available for Slow Debugging Problems
- Tip/Trick: Changing the default browser used in VS 2005 and Visual Web Developer
- Tip/Trick: Creating Packaged ASP.NET Setup Programs with VS 2005
- Resource: VS 2005 Web Application Project Tutorials
- Recipe: Using VS 2005 Web Deployment Projects
- Tip/Trick: Custom formatting HTML in Visual Web Developer and Visual Studio 2005
- Tip/Trick: Fast HTML Editor Navigation within VS 2005
- Tip/Trick: How to Run a Root “/” Site with the Local Web Server using VS 2005 SP1
- Tip/Trick: Creating Re-Usable Project and Item Templates with VS 2005
- Tip/Trick: Creating Sub-Web Projects using the VS 2005 Web Application Project Option
- Tip/Trick: Spell Checker Plug-in for VS 2005 for ASP.NET and HTML Pages
- Tip/Trick: Using IIS7 on Vista with VS 2005
- Gotcha: Fixing Error with VS 2005 SP1 Beta and older Web Application Project Templates
UI
- Tip/Trick: Enabling URL Rewriting with ASP.NET
- Tip/Trick: Using Server Side Comments with ASP.NET 2.0
- Tip/Trick: Use the ASP.NET 2.0 CSS Control Adapters for CSS friendly HTML output
- Tip/Trick: How to Register User Controls and Custom Controls in Web.config
- Recipe: Dynamic Site Layout and Style Personalization with ASP.NET
- Tip/Trick: Advanced Article on ASP.NET 2.0 Master Pages
AJAX
- Tip/Trick: Handling Errors with the UpdatePanel control using ASP.NET AJAX
- Tip/Trick: Cool UI Templating Technique to use with ASP.NET AJAX for non-UpdatePanel scenarios
- Links: ASP.NET AJAX and ASP.NET AJAX Control Toolkit Articles
- Gotcha: Lost HTML Intellisense within ASP.NET AJAX Controls
- Gotcha: Don't use <xhtmlConformance mode="Legacy"/> with ASP.NET AJAX
- Tip/Trick: UpdateProgress Control and AJAX Activity Image Animations
- Tip/Trick: Nikhil's WebDevHelper Utility and ASP.NET AJAX Support
Data
- Tip/Trick: How to Upload a .SQL file to a Hoster and Execute it to Deploy a Database
- Tip/Trick: Deploying a SQL Database to a Remote Hoster Environment
- Tip/Trick: Online Database Schema Samples Library
- Recipe: Great ASP.NET 2.0 Data Tutorials
- Recipe ASP.NET 2.0 RSS Tool-Kit
- Recipe: Paging through lots of data efficiently (and in an Ajax way) with ASP.NET 2.0
- Recipe: Efficient Data Paging with the ASP.NET 2.0 DataList Control and ObjectDataSource
- Tip/Trick: ListControl.AppendDataBoundItems Property in ASP.NET 2.0
Security
- Resource: ASP.NET 2.0 Membership, Roles, Forms Authentication, and Security Resources
- Recipe: Enabling Windows Authentication within an Intranet ASP.NET Web application
- Recipe: Implementing Role Based Security with ASP.NET using Windows Authentication and SQL Server
- Recipe: Configuring ASP.NET 2.0 Application Services to use SQL Server 2000 or SQL Server 2005
- Tip/Trick: Integrating ASP.NET Security with Classic ASP and non-ASP.NET URLs
- Gotcha: Always set the "applicationName" property when configuring ASP.NET 2.0 Membership and other Providers
- Common Gotcha: Don't forget to <clear/> when adding providers
- Tip/Trick: Source/Documentation for Simple ASP.NET 2.0 SQL Providers Published
- Tip/Trick: Guard Against SQL Injection Attacks
- Tip/Trick: Gathering Custom User Registration Information
- Recipe: How to add a Login, Roles and Profile system to an ASP.NET 2.0 app in only 24 lines of code
- Gotcha: Authorization with the built-in VS 2005 Web Server (aka Cassini)
- Gotcha: Forms Authentication timeout default changed between ASP.NET 1.1 -> ASP.NET 2.0
- Tip/Trick: How To Share Authentication Cookies across ASP.NET V1.1 and ASP.NET V2.0 Applications
- Tip/Trick: Enabling SSL on IIS 7.0 using Self Signed Certificates
Deployment
- Gotcha: Don’t run production ASP.NET Applications with debug=”true” enabled
- Tip/Trick: Automating Dev, QA, Production Web.Config Settings with VS 2005
- Tip/Trick: Creating Packaged ASP.NET Setup Programs with VS 2005
- Tip/Trick: Patterns and Practices Guidance Explorer for .NET and ASP.NET
- Tip/Trick: App_Offline.htm and working around the "IE Friendly Errors" feature
- Tip/Trick: Show Detailed Error Messages to Developers (and only to Developers)
- Tip/Trick: Logging ASP.NET Application Shutdown Events
Performance
- Tip/Trick: Implement "Donut Caching" with the ASP.NET 2.0 Output Cache Substitution Feature
- Tip/Trick: Disk Based Output Caching Feature Now Available for ASP.NET 2.0
- Tip/Trick: Cache Manager
.NET 3.5 and VS 2008
- VS 2008 Multi-Targeting Support
- VS 2008 JavaScript Intellisense
- VS 2008 JavaScript Debugging
- VS 2008 Code Editing Improvements
- VS 2008 Nested Master Page Support
- VS 2008 Web Designer and CSS Improvements
- VS 2008 Vertical Split View Support
- VS 2008 ASP.NET AJAX Control Extenders
- ASP.NET ListView Control (Part 1: Building a Product Listing Page with Pure CSS)
- ASP.NET AJAX in .NET 3.5 and VS 2008
LINQ and .NET 3.5
- LINQ to SQL (Part 1 - Overview)
- LINQ to SQL (Part 2 - Defining our Data Model Classes)
- LINQ to SQL (Part 3 - Querying our Database)
- LINQ to SQL (Part 4 - Updating our Database)
- LINQ to SQL (Part 5 - Binding UI using the asp:linqdatasource)
- LINQ to SQL (Part 6 - Retrieving data using stored procedures)
- LINQ to SQL (Part 7 - Updating our database using stored procedures)
- LINQ to SQL (Part 8 - Executing Custom SQL Expressions)
- LINQ to SQL (Part 9 - Using a Custom LINQ Expression with the <asp:LinqDataSource> control)
- LINQ to XML (How to Build a Custom RSS Reader with it)
- New Language Feature: Automatic Properties, Object Initializer and Collection Initializers
- New Language Feature: Extension Methods
- New Language Feature: Lambda Expressions
- New Language Feature: Query Syntax
- New Language Feature: Anonymous Types
- Recipe: Tagging Data using LINQ
- Null Coalescing Operator and using it with LINQ
Silverlight
- My Silverlight Overview Post
- My "Lap Around Silverlight" talk from TechEd
- Building Silverlight Applications using .NET
- Tip/Trick: Supporting Full Screen Mode with Silverlight
- VS 2008 JavaScript Intellisense for Silverlight