ASP.NET Walkthroughs by Scenario
This topic lists a selection of walkthroughs (tutorials) that introduce you to Web development concepts in ASP.NET. These walkthroughs also cover Web development features in Visual Studio 2010 and Visual Web Developer 2010 Express (collectively referred to as Visual Studio).
In addition to these walkthroughs, many topic sections in the Visual Studio documentation include walkthroughs that illustrate key features.
This topic contains the following sections:
The following table lists walkthroughs that introduce you to ASP.NET and Visual Studio, and are particularly useful if you are new to ASP.NET Web development.
Provides an overview of the factors that you should consider when you design a Web site. The topic provides links to topics that provide additional information about individual subjects.
Shows how to use Visual Studio to create an ASP.NET Web site that contains a simple page. You will learn how to create a new ASP.NET Web site project, how projects are laid out, how to add pages, and how to test a Web site.
Shows how to use the code editor. Some of the features of the code editor depend on what language you are coding in. Therefore, in this walkthrough you create two pages, one that uses Visual Basic and another that uses C#.
Shows how to create Web pages in Visual Studio. It guides you through creating a simple page, illustrating the basic techniques of creating a new page, adding controls, and writing code.
Show how to add markup to a page by using code snippets. You can use HTML code snippets in Visual Studio to save time and reduce the amount of typing you have to do.
Shows how to use ASP.NET validation controls to automatically check user input in a Web page.
Shows how to use output caching, which uses a pre-processed copy of a page instead of processing the page again for each request.
Shows how to cache application data in an ASP.NET application. Uses the caching API that is available in the System.Runtime.Caching namespace.
You can use the Visual Studio debugger to help locate errors in your code. ASP.NET tracing lets you display processing steps that occur while a page runs.
The ASP.NET MVC framework provides extensive support for unit testing and test-driven development.
Shows how to use the Visual Studio debugger to work with ASP.NET Web pages.
Shows how to use tracing in an ASP.NET Web page to find errors. Tracing displays messages about the actions that occur during page processing.
The following table lists walkthroughs that show you how to create navigation in your Web site in the form of menus, site maps, and so on.
Shows how to add a menu control to a page and use it as a navigation tool.
Shows how to design URLs that have meaningful information for users and that are help with search engine optimization (SEO).
The following table lists walkthroughs that illustrate how to create the layout and look of your ASP.NET Web sites.
Introduces the features of Visual Studio for working with cascading style sheets (CSS). The walkthrough guides you through creating a three-column page layout, illustrating the basic techniques of creating a new Web page and a new style sheet.
Shows how to use themes to apply a consistent look to pages and controls in a Web site.
Shows how to create an ASP.NET page that lets users select a theme for the page. Although this example uses a single control skin and a basic cascading style sheet (CSS) file, the principles shown apply to more complex themes that include graphics, different layout schemes in the CSS file, and more complex server control skins.
Shows how to create a master page and several content pages. Master pages let you create a page layout. You can then create separate pages that contain content that is merged with the master page at run time.
Shows how to nest master pages so that the parent master page provides a consistent layout throughout a Web site, and the child master page can be used as a template for consistent layout within the parent master page.
Accessibility standards define how to build Web pages that can be used by people who have disabilities. The following walkthroughs show some techniques that help you create ASP.NET Web sites that conform to accessibility standards.
Shows how to display data by using GridView controls in ways that conform to accessibility standards.
Shows how to display data by using ListView controls in ways that conform to accessibility standards.
Shows how to display complex data by using nested ListView controls in ways that conform to accessibility standards.
In many cases, you want to restrict access to pages in a Web site so that only users who are logged on can use those pages. You can also configure your site so that it can store information about preferences and other per-user data, even if users do not have a user ID for your site.
Shows how to use the built-in ASP.NET Web Site project template to create a Web site that has basic login functionality.
Shows how to use ASP.NET controls and ASP.NET membership services to create custom pages that let users log in and work with member-only pages.
Shows how to assign users to roles and how to create rules (permissions) that selectively grant or deny access to pages for different roles. It also shows how to programmatically determine whether a user is in a particular role and which roles the current user is in.
Shows how to add profile properties to a Web site that lets you create a personalized experience for visitors and keep track of details for individual users.
The walkthroughs listed in the following table teach you how to create ASP.NET Web pages that display data and that let users edit data.
Shows how to create a simple data-bound page by using controls that are designed specifically for data access.
Shows various ways to work with data in multiple controls and from multiple tables, which includes those that have a master/detail relationship.
Shows a simple example of best practices for creating a Web site that accesses a database by isolating the data-access and business-logic layers.
Shows how to work with the ListView control, which provides powerful and flexible ways for you to define how data is displayed.
Shows how to use the ASP.NET GridView control's built-in sort functionality to add single-column sorting to data display without requiring any coding.
Shows how to enhance data editing in the ASP.NET GridView control by customizing the control to use a drop-down list in place of a text box.
Shows how to create a simple database table and a Web page that uses LINQ queries The Web page enables users to retrieve, update, insert, and delete data from the database table.
Shows the basics of how to use the TreeView control to display hierarchical data. The TreeView control is suitable for displaying XML data, but can be used for any data that can be represented in a hierarchy.
Show how to use the ASP.NET QueryExtender control in the markup of a Web page to filter data by using only declarative syntax.
Shows how to configure the ClientID property of a control so that you can write client script that updates specific items on a page that display data.
The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model (data), the view (UI), and the controller (business and domain logic). The ASP.NET MVC framework is a lightweight, highly testable presentation framework that is integrated with ASP.NET features such as master pages and membership-based authentication.
Shows how to create an ASP.NET MVC Web application, and shows how to use a unit-test framework and add a test project to an ASP.NET MVC project.
Shows how to use data annotations to validate data.
Shows how to add client-side processing to views in an MVC application.
Shows how to create a MVC project with multiple areas.
Shows how to use asynchronous controller methods.
ASP.NET Dynamic Data lets you create extensible data-driven Web applications by inferring at run time the appearance and behavior of data entities from the database schema and deriving UI behavior from it. Dynamic Data enables you to create a data-driven Web site with little or no coding by analyzing your data model and generating UI from it.
Dynamic Data supports scaffolding, which is a way to automatically generate Web pages for each table in the database. Scaffolding lets you create a functional Web site for viewing and editing data based on the schema of the data. You can also enable dynamic behavior in existing or new Web applications without using scaffolding.
Shows how to create a basic Web site that uses ASP.NET Dynamic Data.
Shows how to create a Web site to include Dynamic Data framework features. In addition, this walkthrough shows ways in which you can customize the Dynamic Data Web site capabilities.
Shows how to enable dynamic behavior in ASP.NET data-bound controls without using Dynamic Data scaffolding.
Shows how to customize the way in which Dynamic Data displays data from a data field.
Shows how to customize the way in which Dynamic Data displays data from a table.
Shows how to perform table-row filtering in an ASP.NET Dynamic Data Web site.
Shows how to implement table-per-hierarchy (TPH) inheritance by modifying the conceptual model in an Entity Data Model (EDM).
The following walkthroughs focus on enhancing server-based ASP.NET Web Forms applications using Ajax technology.
Shows how to use some features of Microsoft Ajax that are included when you install Visual Studio.
Shows how to create an AJAX-enabled Web application that can work as a to-do or task list.
Shows how to configure the ClientID property of a control so that you can write client script that accesses ASP.NET controls in a user control.
ASP.NET lets you create a single Web page that can display text in different languages, according to information that comes from the user. The translated (localized) text is stored in resource files that can be automatically read by ASP.NET when a page runs.
Shows how to create localization resource files and reference them in Web pages by using declarative expressions.
After you have created and tested a Web site, you typically publish it to a server computer. The walkthroughs in this section show you features in Visual Studio that let you deploy your Web site for others to use.
Shows how to use the Copy Web Site tool to copy files between your Web site project and a Web site using an FTP-like utility. (Does not apply to Web application projects. For information about the differences between Web site projects and Web application projects, see Web Application Projects versus Web Site Projects.)
Shows how to use the Windows XCOPY command to copy files from your Web site project to a Web site. (Does not apply to Web application projects.)
Shows how to use the Publish Web Site utility to compile a Web site project and then copy the output to an active Web site. (Does not apply to Web application projects.)
The Publish Web Site utility is not available in Visual Web Developer 2008 Express Edition or later versions of Visual Web Developer Express.
Shows how to deploy a Web application project to a hosting company by using one-click publish. (Does not apply to Web site projects.)
Provides the first in a series of four walkthroughs that show how to deploy a Web application project by creating and installing a deployment package. The walkthroughs illustrate both local and remote deployment. (Does not apply to Web site projects.)
ASP.NET includes a rich array of features for creating Web pages, but it is also highly extensible. The walkthroughs in this section illustrate advanced ASP.NET functionality, such as how to create custom ASP.NET controls that encapsulate HTML and logic, how to create custom Web output such as RSS, and how to create components that monitor and respond to HTTP requests to your site.
Shows how to encapsulate markup and code into an ASP.NET user control that you can add as a reusable element to any ASP.NET Web page in a site.
Shows how to create a class that can be referenced automatically anywhere in your Web site. Creating shared classes is a powerful way to manage business logic and to create reusable components in Web applications.
Shows how to create and compile a custom ASP.NET server control and use it in a page.
Shows how to create an HTTP handler, which lets you create custom dynamic output other than Web pages, such as RSS feeds.
Shows the basic functionality of a custom HTTP module. An HTTP module is called on every request, and lets you customize how the request or response is processed.