ASP.NET development best and worst practices

ASP.NET development best and worst practices

Despite all the tools, widgets and add-ins on the market, application development remains a challenge. Most developers undoubtedly keep a list -- whether digital, paper or mental -- of the techniques that have gone right and wrong in their years at the keyboard.

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to provide a unique online resource for developers, architects and development managers tasked with building and maintaining enterprise applications using Visual Basic, C# and the Microsoft .NET platform.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchWinDevelopment.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchWinDevelopment.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Under the "Things Gone Right" category, Scott Mitchell, editor and founder of the ASP.NET reference site 4GuysFromRolla.com, is writing a series of ASP.NET 2.0 tutorials for Microsoft's ASP.NET site.

The tutorials focus on managing data in Web applications. Data management presents quite a challenge, since developers must establish best practices for connecting an application to its data, displaying and modifying data and limiting which users get to view which types of data.

Mitchell's tutorials can be read and downloaded here. VB and C# code are available with each tutorial. So far there are 23 postings in the following categories:

  • Introduction
  • Basic Reporting -- working with ObjectDataSource
  • Master/Detail -- filtering
  • Custom Formatting -- using TemplateFields and GridView
  • Editing, Inserting, and Deleting Data -- events, exceptions and customizations

Additional postings are on the way as well.

On the other hand, from the "Things Gone Wrong" file, Jeff Prosise covers 10 common ASP.NET pitfalls in this MSDN article. Prosise, cofounder of the consultancy Wintellect, draws on his experience to present real-world examples of applications that suffered because of a single, and often simple, mistake.

A few of Prosise's points concern data. In particular, he offers strategies to combat long database queries, poor database design and SQL Server session state, which increases scalability but kills performance. Other ASP.NET pitfalls include output caching, view state in large controls and profile property serialization.

The article ends with a 10-point checklist that developers should use to judge the strength and security of their ASP.NET applications.

The challenges and complexity of building applications means that a developer's work is never done. As soon as one set of obstacles is cleared, another emerges. Fortunately, resources such as these make issues like data management and application performance quite a bit easier to handle.

This was first published in July 2006

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.