Architectural GuidanceLearn how to design applications with ASP.NET and the .NET Framework.
.jpg) | We know it's not easy to create an application. Especially when you have as many choices as you do when creating ASP.NET applications. That's why we've created this section of the ASP.NET Developer Center, to give you the tools to help you decide which features will help you most when designing your application. Each of the items on this page highlight many of the common questions we hear when talking with ASP.NET Developers or see on the ASP.NET forums, newsgroups and other discussion areas. |
3-tier Architecture with ASP.NET 2.0 Tutorial SeriesIntroduction | Tutorial 1: Creating a Data Access Layer
When building a Web application, creating the DAL should be one of your first steps, occurring before you start creating your presentation layer. With Visual Studio, creating a DAL based on Typed DataSets is a task you can accomplish in 10-15 minutes. Visual Basic | Visual C# | | Tutorial 2: Creating a Business Logic Layer
A well-architected application is crafted into distinct layers, each of which encapsulates a particular role; in this tutorial we build a Business Logic Layer as a series of classes in our application's App_Code folder that call down into our DAL. Visual Basic | Visual C# | | Tutorial 3: Master Pages and Site Navigation
With the site map defined and the master page complete, we now have a consistent page layout and navigation scheme for our data-related tutorials. Now updating the site-wide page layout or site navigation information is a quick and simple process. Visual Basic | Visual C# |
Basic Reporting | Tutorial 4: Displaying Data With the ObjectDataSource
Accessing and displaying data from a Business Logic Layer can be accomplished without writing a line of code thanks to ASP.NET 2.0's ObjectDataSource control. The ObjectDataSource invokes a specified method of a class and returns the results. Visual Basic | Visual C# | | Tutorial 5: Declarative Parameters
In order to use methods with input parameters, we need to specify the values for the parameters in the ObjectDataSource's SelectParameters collection. Different types of parameters allow for the parameter value to be obtained from different sources. Visual Basic | Visual C# | | Tutorial 6: Programmatically Setting the ObjectDataSource's Parameter Values
While the ObjectDataSource's parameters' values can typically be set declaratively, without requiring a line of code, it's easy to set the parameter values programmatically. This tutorial concludes the Basic Reporting section. Visual Basic | Visual C# |
Master/Detail | Tutorial 7: Master/Detail Filtering With a DropDownList
Examines how to build a simple master/detail report showing a selected category's products. This is accomplished by using a DropDownList for the list of categories and a GridView for the products belonging to the selected category. Visual Basic | Visual C# | | Tutorial 8: Master/Detail Filtering With Two DropDownLists
The DropDownList serves as an ideal user interface element for master/detail reports where there is a one-to-many relationship between the master and detail records. Visual Basic | Visual C# | | Tutorial 9: Master/Detail Filtering Across Two Pages
While master/detail reports can display both the master and detail records on a single page, on many Web sites they are separated out across two Web pages. In this tutorial we looked at how to implement such a master/detail report. Visual Basic | Visual C# | | Tutorial 10: Master/Detail Using a Selectable Master GridView with a Details DetailView
The final tutorial on master/detail reports. We'll look at how to display a list of products in a GridView where each row has a Select button. Clicking the Select button will display that product's details in a DetailsView control on the same page. Visual Basic | Visual C# |
| Custom Formatting | Tutorial 11: Custom Formatting Based Upon Data
Adjusting the format of GridView, DetailsView, or FormView based upon data bound to it can be accomplished in multiple ways. This tutorial looks at how to accomplish data-bound formatting through the use of DataBound and RowDataBound event handlers. Visual Basic | Visual C# | | Tutorial 12: Using TemplateFields in the GridView Control
This tutorial examines how to use TemplateField to achieve a greater degree of customization with GridView. This tutorial looks also at another way to customize the formatting based on underlying data: by calling formatting methods from within a template. Visual Basic | Visual C# | | Tutorial 13: Using TemplateFields in DetailsView
The TemplateField in the DetailsView control allows for a higher degree of flexibility in displaying data than is available with the other field controls, and is ideal for multiple situations, many of which are discussed in this tutorial. Visual Basic | Visual C# | | Tutorial 14: Using the FormView's Templates
In this tutorial, Scott Mitchell shows how to use the FormView control for a more flexible layout when displaying a single record. Visual Basic | Visual C# |
Editing, Inserting, and Deleting Data | Tutorial 16: An Overview of Inserting, Updating, and Deleting Data
In this tutorial, Scott Mitchell explains how to map the Insert(), Update(), and Delete() methods of the ObjectDataSource to methods of classes in the BLL, as well as how to configure the GridView, DetailsView, and FormView controls to provide data-modification capabilities. Visual Basic | Visual C# | | Tutorial 17: Examining the Events Associated with Inserting, Updating, and Deleting
Extend the built-in inserting, updating, and deleting capabilities of ASP.NET data Web controls, and customize the editing interface to update only a subset of the product fields, with this tutorial from Scott Mitchell. Visual Basic | Visual C# | | Tutorial 18: Handling BLL-Level and DAL-Level Exceptions in an ASP.NET Page
In this tutorial, we will see how to display a friendly, informative error message should an exception occur during an insert, update, or delete operation of an ASP.NET data Web control. Visual Basic | Visual C# | | Tutorial 19: Adding Validation Controls to the Editing and Inserting Interfaces
In this tutorial, we'll see how easy it is to add validation controls to the EditItemTemplate and InsertItemTemplate of a data Web control, to provide a more foolproof user interface. Visual Basic | Visual C# | | Tutorial 20: Customizing the Data-Modification Interface
In this tutorial, we'll look at how to customize the interface of an editable GridView, by replacing the standard TextBox and CheckBox controls with alternative input Web controls. Visual Basic | Visual C# | | Tutorial 21: Implementing Optimistic Concurrency
For a Web application that allows multiple users to edit data, there is the risk that two users might be editing the same data at the same time. In this tutorial, we'll implement optimistic-concurrency control to handle this risk. Visual Basic | Visual C# | | Tutorial 22: Adding Client-Side Confirmation when Deleting
In the interfaces we've created so far, a user can accidentally delete data by clicking the Delete button when they meant to click the Edit button. In this tutorial, we'll add a client-side confirmation dialog box that appears when the Delete button is clicked. Visual Basic | Visual C# | | Tutorial 23: Limiting Data-Modification Functionality Based on the User
In a Web application that allows users to edit data, different user accounts may have different data-editing privileges. In this tutorial, we'll examine how to adjust dynamically the data-modification capabilities based on the visiting user. Visual Basic | Visual C# |
Paging and Sorting | Tutorial 24: Paging and Sorting Report Data
Paging and sorting are two very common features when displaying data in an online application. In this tutorial, we'll take a first look at adding sorting and paging to our reports, which we will then build upon in future tutorials. Visual Basic | Visual C# |
|
| Design Patterns: Model View Presenter
The MVP pattern helps you separate your logic and keep your UI layer free of clutter. This month learn how. | | Rearchitect Your Web Applications for ASP.NET 2.0 Thinking about updating your ASP.NET apps? Get a detailed
Thinking about updating your ASP.NET apps? Get a detailed analysis of how changes in ASP.NET 2.0 will influence your porting decisions. | | Use the Provider Design Pattern in Your ASP.NET 1.1 Apps Today Implement the Provider Design Pattern in your ASP.NET 1.1 applications today, and dynamically replace or extend the behavior of published APIs without needing source access to the API itself. | | Provider Model Design Pattern and Specification, Part 1 Make your ASP.NET 1.1 applications more flexible by using the new "Whidbey" provider design pattern. Rob Howard is back to show you how. | | Add Rich Custom Error Handling to ASP.NET Applications Ease debugging and improve customer satisfaction by adding your own custom error handling to your ASP.NET Web applications. | | One Site, Many Faces Examine a technique for building and maintaining a site that presents a variety of output formats (XML, HTML, RSS) from a single source. | | ASP.NET and Struts: Web Application Architectures Compare and contrast ASP.NET and the Apache Struts Framework for building dynamic Web applications. | | Design and Implementation Guidelines for Web Clients Use design patterns and Microsoft .NET Framework programming idioms to the greatest advantage in the presentation layer of your distributed applications. | | Jumping Into ASP.NET, Part One In this series, you'll learn best practices for Web application design and programming. First step: defining the application and planning ahead. | | Microsoft .NET PetShop 3.x: Design Patterns and Architecture This updated version of the .NET Pet Shop is Microsoft's entry in the upcoming Middleware Application Server Benchmark, a second round of testing to compare the scalability of .NET and J2EE application platforms. | | Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code Threading in ASP.NET is a lot easier than it was in ASP. This article explains threading in the ASP.NET HTTP pipelinehow threads are managed efficiently without the involvement of the developer and how the common language runtime threadpool is used by ASP.NET to service requests. It also looks at the pooling mechanisms used for handlers, modules, and applications, and covers when to use asynchronous handlers. | | ASP.NET Performance Monitoring, and When to Alert Administrators Select key performance counters to ensure the reliability and performance of your ASP.NET application. |
Related Learning Resources
This feed, No Title, currently has no items to display.
| |