Handling Formats Based On Url Extension

Rob pinged me today asking about how to respond to requests using different formats based on the extension in the URL. More specifically, he’d like to respond with HTML if there is no file extension, but with JSON if the URL ended with .json etc…

Read More

Fun With Named Formats, String Parsing, and Edge Cases

code suggest edit

TRIPLE UPDATE! C# now has string interpolation which pretty much makes this post unnecessary and only interesting as a fun coding exercise.

Read More

Not Your Typical Top Ten Of 2008 Post

meta suggest edit

At the end of the year, it’s very common for bloggers to take a look back at their own blog and list their favorite 10 blog posts. I find that somewhat narcissistic, so you know I’m going to do that.

Read More

Interesting use of XML Literals as a View Engine

Dmitry, who’s the PUM for ASP.NET, recently wrote a blog post about an interesting approach he took using VB.NET XML Literals as a view engine for ASP.NET MVC.

Read More

I Love To Code

code suggest edit

I was reading Jeff Atwood’s latest post, Programming: Love it or Leave it when I came across this part, emphasis mine.

Read More

A Little Holiday Love From The ASP.NET MVC Team

A while ago ScottGu mentioned in his blog that we would try and have an ASP.NET MVC Release Candidate by the end of this year. My team worked very hard at it, but due to various unforeseeable circumstances, I’m afraid that’s not gonna happen. Heck, I couldn’t even get into the office yesterday because the massive dumping of snow. I hope to get in today a little later since I’m taking next week off to be with my family coming in from Alaska.

Read More

Redirect Routes and other Fun With Routing And Lambdas

ASP.NET Routing is useful in many situations beyond ASP.NET MVC. For example, I often need to run a tiny bit of custom code in response to a specific request URL. Let’s look at how routing can help.

Read More

The Feedburner to Google Domain Transition Foul Up

meta suggest edit

UPDATE: There’s a workaround mentioned in the Google Groups. It’s finally resolved.

Read More

ASP.NET MVC Northwind Demo Using the Spark View Engine

While at PDC, I met Louis DeJardin and we had some lively discussions on various topics around ASP.NET MVC. He kept bugging me about some view engine called Flint? No… Electricity? No… Spark!

Read More

Known Installation Issues With ASP.NET MVC

I’m working to try and keep internal release notes up to date so that I don’t have this huge amount of work when we’re finally ready to release. Yeah, I’m always trying something new by giving procrastination a boot today.

Read More

Subtext 2.1 Released! Contains Security Update

subtext suggest edit

A Subtext user found a security flaw which opens up Subtext to potential XSS attacks via comment. This flaw was introduced in Subtext 2.0 by the feature which converts URLs to anchor tags. If you are still on 1.9.5b or before, you are not affected by this issue. If you upgraded to 2.0, then please update to 2.1 as soon as you can.

Read More

Poll on Moving Subtext To ASP.NET 3.5

subtext suggest edit

How many of you out there who use Subtext host it on a hosting provider who does not have ASP.NET 3.5 available? I’d like to make the next version of Subtext 2 take a dependency on 3.5. Note that it wouldn’t have to take a dependency on SP1. Just ASP.NET 3.5 proper as I believe most hosting providers support it.

Read More

ASP.NET MVC on IIS 6 Walkthrough

UPDATE: If you run ASP.NET MVC on IIS 6 with ASP.NET 4, setting up extensionless URLs just got easier. In most cases, it should just work.

Read More

Combining JQuery Form Validation and Ajax Submission with ASP.NET

aspnet suggest edit

As I mentioned before, I’m really excited that we’re shipping jQuery with ASP.NET MVC and with Visual Studio moving forward. Just recently, we issued a patch that enables jQuery Intellisense to work in Visual Studio 2008.

Read More

Anatomy of a Subtle JSON Vulnerability

json security suggest edit

I recently learned about a very subtle potential security flaw when using JSON. While subtle, it was successfully demonstrated against GMail a while back. The post, JSON is not as safe as people think it is, covers it well, but I thought I’d provide step-by-step coverage to help make it clear how the exploit works.

Read More

New Line Quirk with HTML TextArea

aspnetmvc suggest edit

Pop quiz. What would you expect these three bits of HTML to render?

Read More

Rendering A Single View Using Multiple ViewEngines

One of the relatively obscure features of ASP.NET view rendering is that you can render a single view using multiple view engines.

Read More

ASP.NET MVC In The Clouds

Quick question? What’s higher than a kite?

Read More

The Future of WebForms And ASP.NET MVC

I’ve heard a lot of concerns from people worried that the ASP.NET team will stop sparing resources and support for Web Forms in favor of ASP.NET MVC in the future. I thought I would try to address that concern in this post based on my own observations.

Read More

HTML Stripping Challenge

code html suggest edit

UPDATE: I added three new unit tests and one interesting case in which the three browser render something differently.

Read More