Home / ASP.NET Weblogs

November 2010 - Posts

Posted to:

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...
Posted to:
by: 
11-16-2010, 12:36 PM

Updates to the Microsoft CDN (Updated 12/1/2010)

I want to announce a couple of changes we have made to the Microsoft CDN recently. Updated jQuery We have added both jQuery 1..4.3 and jQuery 1.4.4 to the CDN, plus there are vsdoc files for both of these releases. These new releases are available with these URLs: jQuery version 1.4.4 http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.min.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4-vsdoc.js jQuery version 1.4.3 http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.3.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.3.min.js http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.3-vsdoc.js New Domain Name The Microsoft CDN is now available from a new domain name: ajax.aspnetcdn.com. We added...
Filed under:
Posted to:
by: 
11-16-2010, 11:11 AM

Re-Introducing a Podcast–Glenn Block on WCF and WCF Futures

I’ve had LOTS of requests to start doing podcasts again – so….. Introducing the MSJOE Podcast ( http://msjoe.com/podcast/ ) No intro music, etc. just geek talk. I’m very pleased to have Glenn Block for my first guest. Glenn is one of those super smart, exuberant, enthusiastic guys here at Microsoft that takes on tough problems and digs for great useful solutions. Glenn and I spend some time review his previous work at Microsoft and then focus on the new work he’s doing with WCF, his focus on REST and usage scenarios that modern web developers care about. Listen, Subscribe, Read about it HERE !!! http://msjoe.com/podcast/post/Episode-1-Glen-Block-on-WCF.aspx ( http://msjoe.com/podcast/ ) Technorati Tags: podcast...
Filed under:
Posted to:
by: 
11-16-2010, 3:04 AM

“Unplugged” online talk with me this Friday

This Friday (November 19th) I’m going to be doing another online LIDNUG session .  The talk will be from 10:00am to 11:30am Pacific Time.  I do these talks a few times a year and they tend to be pretty fun.  Attendees can submit any questions they want to me, and listen to me answer them live via LiveMeeting. We usually end up having some really good discussions on a wide variety of development related topics. You can learn more and register to attend the event for free here . Hope to get a chance to chat with some of you there! Scott P.S. In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu Read More...
Filed under: , ,
Posted to:
by: 
11-12-2010, 8:33 PM

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...
Filed under: , , ,
Posted to:

Web Camps–30 new events in the calendar, seats going fast!

   The Web Camps team has been busy working on organizing new events around the world and we’ve got a bunch of new events to share with you!  We’ve also been getting reports in on the first Web Camps where developers have been getting free training on how to build web applications using cutting edge [...] Read More...
Posted to:
by: 
11-12-2010, 1:27 AM

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...
Filed under: , , ,
Posted to:

ASP.NET Web Application: Publish/Package Tokenizing Parameters

Today I just saw a question posted on stackoverflow.com asking Why are some Web.config transforms tokenised into SetParameters.xml and others are not ? Let me give some background on this topic for those who are not aware of what the question is. With Visual Studio 2010 when you package your application using the Build Deployment Package context menu option, see image below. When build the package by default the package will be created in obj\{Configuration}\Package\{ProjectName}.zip where {Configuration} is the current build configuration, and {ProjectName} is the name of the project. So in this case I since I’m building with Debug and the project name is MvcApplication1 the package will be placed at obj\Debug\Package\MvcApplication1...
Posted to:

ASP.NET MVC 3 Release Candidate

Today we’re releasing the release candidate for ASP.NET MVC 3. We’re in the home stretch now so it’ll mostly be bug fixes and small tweaks from here on out. There are two ways to install ASP.NET MVC 3: Via the Web Platform Installer (Web PI) Or by downloading the installer directly Also, be sure to check out the ASP.NET MVC 3 web page for information and content about ASP.NET MVC 3 as well as the release notes for this release . Also, don’t miss Scott Guthrie’s blog post on ASP.NET MVC 3 which provides the usual level of detail on the release. Razor Intellisense. Ah Yeah! Probably the most frequently asked question I received when we released the Beta of ASP.NET MVC 3 was “When are we going to get Intellisense for Razor?” Well I’m happy to say...
Posted to:

NuGet CTP 2 Released!

My team has been hard at work the past few weeks cranking out code and today we are releasing the second preview of NuGet (which you may have heard referred to as NuPack in the past, but was renamed for CTP 2 by the community). If you’re not familiar with what NuGet is, please read my introductory blog post on the topic . For a detailed list of what changed, check out the NuGet Release Notes . To see NuGet in action, watch the talk that Scott Hanselman’s gave at the Professional Developer’s Conference which was the highest rated talk. You can watch it online or download it in HD . How do I get it? There are three ways to get NuGet CTP 2. Via MVC 3 NuGet CTP 2 is included as part of the ASP.NET MVC 3 Release Candidate installation ( install via...

< Previous 1 2 3 4 5 Next >

Archives