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 Developer/2010. This MSDN article, also shows how to install Install SQL Server Data Tools. Launch WPI 4.0 ( Web Platform Installer ) Select All in the left pane and Products from the top. In the search box…

14

ASP.NET Bundling and Minification

I’m pleased to announce my new Bundling and Minification tutorial.  Bundling and Minification (B/M)  can significantly improve your first page hit download time – something that is very critical for mobile targeted applications. B/M was introduced in ASP.NET 4.5 Beta, but the RC version has significant improvements. For a good overview of the changes between…

4

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 project and copy all the views, controllers, code, and content files from the existing MVC 4 Beta project to the new project and then to update the assembly references in the new project to…


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 Methods in ASP.NET MVC 4 Using Asynchronous Methods in ASP.NET 4.5 The .NET Framework 4.5 builds on this asynchronous support with the await and async keywords that make working with Task objects much less complex than previous asynchronous approaches.  By comparison, my…

1

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 not supported in ASP.NET MVC.     Executive Overview You cannot use routing or web.config files to secure your MVC application. The only supported way to secure your MVC application is to apply the Authorize attribute to each controller and use…

20

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 the MVC pattern.  If you’re calling Clear(), then by definition you started doing one thing (like setting headers, writing to the response, etc.) but now suddenly need to back out and do something else.  In the MVC pattern, you…

4

JSON Serialization / Deserialization of DateTime Not Equal

I recently used the DataContractJsonSerializer to serialize a class. I noticed that for a DateTime field, the deserialized result appeared identical to the original value, but the equals operator failed.  The following simple program reproduced the problem. using System; using System.Runtime.Serialization.Json; using System.IO; using System.Runtime.Serialization; public static class JsonHandler { public static byte[] SerializeToJsonBytes(object obj)…

2

ASP.NET MVC DropDownList, MultiSelect and jQuery

The most frequently posted question in the ASP.NET MVC forums is about how to use the DropDownList (DDL) helper. To address this question, I wrote the tutorial Using the DropDownList Helper with ASP.NET MVC, which covers most DropDownList scenarios. This blog post shows some of the highlights of my new Using the DropDownList Helper with…

8

Cascading DropDownList in ASP.Net MVC

I have written a simple sample showing how to implement cascading drop down lists in ASP.Net MVC.   In this sample the user is presented with a list of countries. Once a country is selected, a new drop down list is appears showing the states in the selected country. You can download the sample here. Although…

29

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 applies to Azure. I was working on a lab using the Windows Azure SDK when I got 500 server error Not a descriptive error message. The Windows Azure Tools for Microsoft Visual Studio (WATVS) creates a new…

2