Best Practices for ASP.NET MVC

[This post is based on a document authored by Ben Grover (a senior developer at Microsoft). It is our intention to integrate this information into the MVC 3 documentation on MSDN. We hope to hear from you and welcome any suggestions you might have.] This document presents a set of coding guidelines aimed at helping…

34

More Entity Framework Tutorials for ASP.NET Developers

The second series of Entity Framework tutorials, Continuing with the Entity Framework and ASP.NET, has been published on the ASP.NET site. The tutorials build on the sample application that the first series, Getting Started with the Entity Framework, explains how to build. You can download a Visual Studio project that is a finished version of…

16

Response.End, Response.Close, and How Customer Feedback Helps Us Improve MSDN Documentation

Last December someone used the feedback link on the HttpResponse.Close method in MSDN to send the following comment:  “Where is any context on use and what is actually occurring?” I maintain the HttpResponse class documentation, so this comment got routed to me. I did not assign it a high priority because it was not reporting…

15

ASP.NET Page Life Cycle Diagram

The following diagram shows some of the most important methods of the System.Web.UI.Page class that you can override in order to add code that executes at specific points in the page life cycle.  It also shows how these methods relate to page events and control events. A preliminary version of the diagram was added to the…

11

Entity Framework Tutorials for ASP.NET Developers

We have been working on new tutorials intended to introduce ASP.NET developers to the Entity Framework. The first series,  Getting Started with the Entity Framework and ASP.NET, has been published on the ASP.NET site. The tutorials build a sample application for which you can download the Visual Studio project. Here is an outline of topics…

11

Caching Application Data by Using Multiple Cache Objects in an ASP.NET Application

I am in the process of writing a Walkthrough document about How to use multiple cache objects to cache application data in ASP.Net 4. This blog post is intended to be a precursor for the Walkthrough. When the Walkthrough is completed I intend to submit it to MSDN for publication as part of the ASP.NET…

8

Enterprise Deployment Tutorial Series Published

A new series of tutorials about how to configure deployment of ASP.NET web applications in a continuous integration (CI) environment has been published on the ASP.NET site. A sample Visual Studio solution that goes with the tutorials is available for download.  The tutorials include many topics relevant to web development work in an enterprise environment:…

8

Entity Framework Code First Tutorial Supplement: What is Going on in a Fluent API Call

In the new Entity Framework Code First MVC tutorial series there are some examples of what has come to be called fluent API method calls. This term refers to code in which a series of method calls are chained together. The Creating a More Complex Data Model tutorial briefly explains what this code does, but…

8

SQL Server Connection Strings for ASP_NET Web Applications

[Note:  This post is a preliminary version of a document that has been published on MSDN. The published version with changes resulting from the comments received is now available here. Thanks to everyone who sent comments about this version.] This is one of a series of posts that present preliminary versions of pages that will…

7