nav-left cat-right
cat-right

Manually validate an ASP.Net MVC form on the clien...

A recent problem cropped up in my Asp.Net MVC application. Its using the standard setup of DataAnnotations + MicrosoftMvcValidation.js + jQuery 1.4.2, and I needed to check the validation state of a form before performing some client-side actions. No problem, right? Obviously not. This second part of this post gets in depth as to what's going on with the MicrosoftMvcValidation script, but to save you some time,...

ASP.Net MVC – How to route to images or othe...

A recent question on Stack Overflow (and subsequent answer that I wrote for it) inspired this post. I had recently been discussing URL rewriting in depth with my brother, and have also been doing some introductory work with the routing engine in ASP.Net MVC, and the question piqued my interest since I had been meaning to look at this more closely for some time. The question on Stack Overflow is titled "How do I route...

.Net Mocking Frameworks – Capability Compari...

I have a couple years of experience of TDD under my belt, but it's only recently that I've felt like I am a relatively decent practitioner of it.  I attribute this to forcing myself to take the plunge into mocking, and the knowledge of patterns and loosely-coupled design that I've gained from it. You see, I work on a pretty large and complex ASP.Net webforms product, and tests were introduced late into the...

Defend PHP

I ran across a great discussion at StackOverflow today that started with this question: I made a tongue-in-cheek comment in another question thread calling PHP a terrible language and it got down-voted like crazy. Apparently there are lots of people here who love PHP. So I'm genuinely curious. What am I missing? Why makes PHP a good language? The article lists a dozen or so "flaws" with the language, and then...

ASP.Net Load Testing and Optimization Toolkit R...

One of my passions is optimization. There's no code related task I like more than making something run better, faster, snappier -- from tweaking UI registry keys to stripping out crap code -- I want results.  Usually if something is noticeably slow on the user's end, there's something fundamentally wrong that can be made faster -- a lot faster. Why do I love optimization? It's because it's the...