共用方式為


RickAndMSFT on Azure & MVC

Filling the Azure Gap

Seeding and Debugging Entity Framework (EF) DBs

In Tom Dykstra’s terrific ASP.NET MVC EF tutorial, the following code is used to seed the student...

Date: 02/12/2013

Optimal Azure Restarts

Restarts for Web Roles Updated 17 Jan 2013:  Tracing in OnStop is not supported. An often...

Date: 12/21/2012

Top Azure Tips and Best Practices

Tom Dykstra and I have just published an Azure multi-tier tutorial with the complete source. It has...

Date: 12/20/2012

Debugging Azure HTTP 500 Errors

By default, Windows Azure Cloud Services Web Role applications, running in Windows Azure or the...

Date: 11/06/2012

Debugging HTTP 500 - Internal server error with the Windows Azure SDK

Update November 2012 – See my new blog entry Debugging Azure HTTP 500 Errors. This blog no longer...

Date: 10/25/2012

Azure Table Storage

This Azure Table Storage tutorial/sample/walkthrough will get you using Azure Table Storage from...

Date: 09/20/2012

ASP.NET MVC 4 Mobile Caching Bug Fixed

31 October  2012 Update: The ASP.NET Fall 2012 Update includes the Fixed DisplayModes NuGet...

Date: 09/17/2012

Adding Web Optimization to a Web Pages Site

Adding bundling and minification (B/M) in a Web Pages site follows the same formula ASP.NET MVC and...

Date: 08/15/2012

InitializeSimpleMembership Attribute and SimpleMembership Exceptions

The InitializeSimpleMembership Attribute ensures that before any membership (login/register) related...

Date: 08/15/2012

Adding Bundling and Minification to Web Forms

My   B/M tutorial provides a good introduction to benefits of Bundling and Minification....

Date: 08/14/2012

Installing and using SQL Server Data Tools (SSDT) on Visual Studio 2010 and VWD

This blog post shows how to Install SQL Server Data Tools on Visual Studio 2010 and Visual Web...

Date: 08/02/2012

ASP.NET Bundling and Minification

I’m pleased to announce my new Bundling and Minification tutorial. Bundling and Minification...

Date: 06/13/2012

ASP.NET MVC 4 Beta to MVC RC Upgrade Instructions

The simplest way to upgrade from ASP.NET MVC 4 Beta to RC is to create a new ASP.NET MVC 4 RC...

Date: 06/12/2012

Async ASP.NET MVC, Web Forms and Web API

I’m pleased to announce two new asynchronous tutorials for ASP.NET 4.5: Using Asynchronous...

Date: 06/08/2012

Securing your ASP.NET MVC 4 App and the new AllowAnonymous Attribute

2 March 2013 Update: Added security links 20 June 2012 Update: Cookieless Session and Authentication...

Date: 03/23/2012

Response.Redirect and ASP.NET MVC – Do Not Mix

Update 28 November 2012: HttpResponse.Clear is safe but not recommended since it is a violation of...

Date: 03/01/2012

JSON Serialization / Deserialization of DateTime Not Equal

I recently used the DataContractJsonSerializer to serialize a class. I noticed that for a DateTime...

Date: 02/03/2012

Debugging HTTP 500 - Internal server error with Windows Azure SDK

Update November 2012 – See my new blog entry Debugging Azure HTTP 500 Errors. This blog no longer...

Date: 11/23/2011

ASP.NET MVC Dynamic Universal Map of Resources

I’m pleased to introduce the new ASP.NET MVC Content Map. I’m calling this a dynamic map because I...

Date: 08/11/2011

Should my database calls be Asynchronous Part II

Update 28 November 2012: The combination of await, async, and the Task object makes it much easier...

Date: 07/19/2011

Using CDNs and Expires to Improve Web Site Performance

Much has been written on the advantages of using a  Content Delivery Network (CDN) to deliver...

Date: 05/21/2011

Securing your ASP.NET MVC 3 Application

Executive Overview You cannot use routing or web.config files to secure your MVC application. The...

Date: 05/02/2011

Better, Faster, Easier SSL testing for ASP.NET MVC & WebForms

ScottHa has a great blog Working with SSL at Development Time is easier with IISExpress, but I’ve...

Date: 04/22/2011

Test your ASP.NET MVC or WebForms Application on IIS 7 in 30 seconds

A frequent complaint in the ASP.NET forums is that an application works fine with Cassini (AKA, the...

Date: 04/22/2011

Enabling IIS 7.X on Windows 7, Vista SP1, Windows 2008, Windows 2008/R2

To set up IIS to run ASP.NET applications (including MVC 3 and Web Matrix): Install the Microsoft...

Date: 03/14/2011

Handling Optimistic Concurrency Exception with EF and MVC 3

I've written a simple MVC 3 application to demonstrate handing optimistic concurrency exceptions...

Date: 02/17/2011

Dynamic V Strongly Typed Views

There are three ways to pass information from a controller to a view in ASP.NET MVC 3: As a strongly...

Date: 01/28/2011

Securing your MVC Application

Executive Overview You cannot use routing or web.config files to secure your MVC application. The...

Date: 08/24/2010

Secure or a Security Hole, hardening your Area

This blog has been replaced by Securing your MVC Application

Date: 08/20/2010

Session less MVC Controller for MVC 2 / RC

LiveJournal Tags: MVC,MVC 2,session Why a session less controller? Update 5 Feb 2010 – The latest...

Date: 12/16/2009

Using the BeginMethod/EndMethod pattern with MVC

If your asynchronous action method calls a service which exposes methods using theBeginMethod() /...

Date: 12/02/2009

Should my database calls be Asynchronous?

Update 28 November 2012: The combination of await, async, and the Task object makes it much easier...

Date: 11/14/2009

Tips on getting your ASP.NET MVC questions answered quickly

When you run into an issue or have a question about ASP.NET MVC the best place for it is the MVC...

Date: 10/29/2009

MVC FAQ

Please post corrections/submissions to the MVC Forum. Include MVC FAQ in the title. MSDN articles...

Date: 10/15/2009

Client Side Validation for MVC 2 P2

MVC 2 Preview 1 added support for DataAnnotations. In my MSDN article How to: Validate Model Data...

Date: 10/02/2009

DRY-ing out the MVC 2 Templated Helpers

In my MSDN article Using Templated Helpers to Display Data, I show how they provide a very...

Date: 08/18/2009

Using DataAnnotations in MVC 2 - Catching up to Dynamic Data

DataAnnotations help you write robust validation and prevent the type of annoying error message...

Date: 08/01/2009

New Templated Helpers Improve SoC

SoC (from WikiPedia)In my MSDN article Walkthrough: Using Templated Helpers to Display Data I show...

Date: 07/23/2009

Setting font attributes with UIHint in your Entity Partial Class

I've written a simple Field Template ( RedBold.ascx ) that reads most font attributes and applies...

Date: 06/02/2009

Dynamic Data FAQ

Please post corrections/new submissions to the Dynamic Data Forum. Put FAQ Submission/Correction in...

Date: 01/08/2009

Custom Validation Error message not displayed

A customer pointed out that his Spanish validation error messages were not being displayed; the...

Date: 12/31/2008

Explicit connection string for EF

The default constructor for the ObjectContext class in the Entity Data Model (EDM) retrieves the...

Date: 12/09/2008

Improving the FK field display: Showing two fields in Foreign Key columns

The default scaffold of the CustomerAddress table in the AdventureWorksLT database poses a problem:...

Date: 11/21/2008

How to create an updateable view with ADO Entity Framework and with LINQ to SQL

Creating an update-able view with ADO Entity Framework (EF) or LINQ to SQL (L2S) is a fairly...

Date: 10/03/2008

Tweaking the Filter Repeater

The default implementation of Dynamic Data provides a drop down list box for each foreign key and...

Date: 09/25/2008