(Maarten Balliauw) My last post on the REST for ASP.NET MVC SDK received an interesting comment… Basically, the spirit of the comment was: “There are tons of controller factories out there, but you can only use one at a time!”. This is true. One can have an IControllerFactory for MEF, for Castle Win
Tag: Development
Preventing SQL Injection in ASP.NET
(Mike) I, and many other contributors to the forums at www.asp.net find examples of code posted on a daily basis that are vulnerable to SQL Injection attacks. We continue to exhort beginners (and some more experienced programmers) to code against them. This article examines just how serious a flaw v
How To Use The WPF ListView
(Ged Mead) A recent question on VBCity came from a developer who was searching for a way of changing the background color, font and border of the Column Headers in a ListView. This has always been a particularly tough call in Windows Forms. (A DataGridView, on the other hand, does have this feature,
Working with Themes in ASP.NET
(SheoNarayan) Despite being a very useful feature, Themes are generally given low priority by the developers. In this article, I am trying to play with Themes and its different behavior. Hope we all will learn something from it.
Introduction to the Visitor Pattern
(Matthew Cochran) The power of adding a functional extensibility point to our classes via the visitor pattern is often overlooked. Using a visitor pattern is a very effective means of providing a nice boundary around a set of core classes while at the same time allowing for functional change. This a
A new bridge for PHP developers to .NET through REST: PHP Toolkit for ADO.NET Data Services
(Claudio Caldato) Today, I’m excited to announce that we are releasing a new project that bridges PHP and .NET.
Html.EditorFor and ScaffoldColumnAttribute – Template Helpers in ASP.NET MVC 2.0
(David Hayden) I have mainly been focusing on the Html.DisplayFor and Html.LabelFor in ASP.NET MVC 2.0. However, as of Preview 1, we also have an Html.EditorFor Template Helper that is used specifically for editing data in your view pages. Focusing on the Contact Manager example that I have been dis
Generic Types and Inheritance
(Rick Strahl) Although I use Generics extensively, every once in a while it still throws me for a loop when dealing with complex generic parameters and inheritance. I recently ran into a situation where I needed to created a class hierarchy and needed to inherit generic parameters. Generics are grea
ASP.NET MVC, TDD and AutoMapper
(Richard Dingwall) This post is in response to a question on a recent article I wrote about mapping domain entities to presentation models with AutoMapper, an object-object mapper for .NET. Today I will give a brief example of how we can tie it all together in an ASP.NET MVC application using depend
How Not To Optimize
(David Chisnall) It’s often said that there are two rules to follow when optimizing code: –Don’t optimize. –Don’t optimize yet (experts only).
