Microsoft MVC bloggers

Sponsors

November 2010 - Posts

An Introduction to jQuery Templates
The goal of this blog entry is to provide you with enough information to start working with jQuery Templates. jQuery Templates enable you to display and manipulate data in the browser. For example, you can use jQuery Templates to format and display a set of database records that you have retrieved with an Ajax call. jQuery Templates supports a number of powerful features such as template tags, template composition, and wrapped templates. I’ll concentrate on the features that I think that you will find most useful. In order to focus on the jQuery Templates feature itself, this blog entry is server technology agnostic. All the samples use HTML pages instead of ASP.NET pages. In a future blog entry, I’ll focus on using jQuery Templates with ASP...
BIN Deploying ASP.NET MVC 3 with Razor to a Windows Server without MVC installed
If someone says " just bin Deploy it " they mean "deploy the application with the dependencies copied into the application's /bin folder, rather than running an MSI that installs the dependencies into the Global Assembly Cache (GAC)." You may not have administrative control over your Web Server and your host may not want you running installers when new stuff like ASP.NET MVC 3 and Razor comes out. You'll want to " bin deploy " these new technologies. Here's two ways. The simple way and The Awesome Way. The Manual Way to BIN Deploy ASP.NET MVC 3 with Razor On your development machine that has ASP.NET MVC 3 installed you have a C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3 folder and a C:\Program Files...
Hanselminutes Podcast 238 - ASP.NET MVC 3 RC and NuGet Package Management with Phil Haack
It's PDC week and Scott's on campus with Phil Haack talking about ASP.NET MVC 3 RC and the NuPack NuGet Package Manager. Get ASP.NET MVC 3 RC now ! Also, check out my PDC 2010 presentation on both topics ! NOTE: If you want to download our complete archives as a feed - that's all 238 shows, subscribe to the Complete MP3 Feed here . Also, please do take a moment and review the show on iTunes . Subscribe: Download: MP3 Full Show Do also remember the complete archives are always up and they have PDF Transcripts , a little known feature that show up a few weeks after each show. Telerik is our sponsor for this show. Building quality software is never easy. It requires skills and imagination. We cannot promise to improve your skills, but...
A Better ASP.NET MVC Mobile Device Capabilities ViewEngine
In March of 2009 I spoke at Mix 09, Microsoft's Web Conference and presented a number of ASP.NET MVC features. I extended the NerdDinner Sample with a naive implementation of what I called a MobileCapableWebFormViewEngine. Here's the basic implementation. Don't use this, it's broken. public class MobileCapableWebFormViewEngine : WebFormViewEngine { public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache) { ViewEngineResult result = null; var request = controllerContext.HttpContext.Request; // Avoid unnecessary checks if this device isn't suspected to be a mobile device if (request.Browser.IsMobileDevice) { result = base.FindView(controllerContext, "Mobile...
ASP.NET MVC 3: Server-Side Comments with Razor
Earlier this week we shipped the ASP.NET MVC 3 Release Candidate .  It supports “go live” deployments, and includes a bunch of great improvements/enhancements on top of the features we enabled earlier with the ASP.NET MVC 3 beta and first preview releases. This is another in a series of “mini-posts” I’m doing that talk about a few of the new ASP.NET MVC 3 Beta/RC features in more detail: New @model keyword in Razor (Oct 19th) Layouts with Razor (Oct 22nd) Server-Side Comments with Razor (today) In today’s post I’m going to discuss a small, but useful, feature we’ve recently introduced: server-side comment support in Razor. Why Server Side Comments? Scenario: You are working within a view template, and want to temporarily disable some content...
A few quick ASP.NET MVC 3 Installation Notes
On Tuesday I blogged about the recent release of the ASP.NET MVC 3 RC build .  You can read more about it here . This post is a quick follow-up post that discusses a few installation issues that we’ve seen people run into - and how to fix them: ASP.NET MVC 3 RC and C#/VB Async CTP Two weeks ago the VS languages team released an early preview of some cool language improvements to VB and C# that we are working on for asynchronous programming.  Unfortunately it isn’t possible to have both the Async CTP and the ASP.NET MVC 3 RC installed on the same machine at the same time.  You instead need to choose one or the other right now – installing both will cause problems. If you’ve already installed the Async CTP and want to install the...
Announcing the ASP.NET MVC 3 Release Candidate
This morning the ASP.NET team shipped the ASP.NET MVC 3 RC (release candidate). You can download it here . ASP.NET MVC 3 is a pretty sweet release, and adds a ton of new functionality and refinements.  It is also backwards compatible with ASP.NET MVC V1 and V2 – which makes it easy to upgrade existing apps (read the release notes for the exact steps to do so).  You can learn more about some of the great capabilities in ASP.NET MVC 3 from previous blog posts I’ve done about it: Introducing Razor – a new View Engine for ASP.NET (July) ASP.NET MVC 3 Preview 1 (July) ASP.NET MVC 3 Beta (Oct) ASP.NET MVC 3: @model keyword in Razor (Oct) ASP.NET MVC 3: Layouts with Razor (Oct) Today’s ASP.NET MVC 3 RC build includes several additional feature...
PDC10: Building a Blog with Microsoft "Unnamed Package of Web Love"
I had a lovely time in Redmond this last week attending Microsoft's PDC (Professional Developer's Conference) 2010. I did lots of stuff, met lots of people, did hours of "Live TV" on Channel 9 Live and presented a talk on behalf of the Web Platform and Tools team (WPT is IIS, Media Streaming, ASP.NET, everything web, etc) showcasing all the cool stuff we've been doing lately. You can stream the talk with Silverlight Smooth Streaming as well as PIP (Picture in Picture) or you can download the talk in one of four formats. Note that for some weird reason there's 10 minutes of "we haven't started yet" dead video that you'll have to seek past. You should Right-Click Save As the video you want. UPDATE: All...
More Posts