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...

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...

ASP.Net Web Forms dying a slow death?

Being a web programmer for the last 10 years, I've seen a few different paradigms come and go in the web world. Looking around today, I can't help but think that the writings are on the wall for the ASP.Net "webforms" web application model. When it debuted, it was revolutionary to have a fully typed, compiled OO framework that was virtually portable to mobile and desktop. However, since then, ASP.Net...

10 Tips for Building Selenium Integration Tests

I've been developing an API for our testers to use when writing GUI integration tests and acceptance tests for our main AJAXified web product. Having chosen Selenium Remote Control as our test engine, and writing many tests by hand and with the Selenium IDE Firefox Plugin, I've delved deeply into Selenium this past several weeks. (I've also managed to not only isolate it from our testers, but make our tests portable to any...

Benchmarking Mono ASP.Net vs. PHP – a slight...

We promised some numbers, but I've run into a snag that's slowed down my testing. Originally when we first started toying with the idea of pitting Mono + ASP.Net against PHP, I wrote a quick PHP script that would just make a cheap fopen call to whatever URL you wanted to test, however many times you wanted to hit it. This isn't really load-testing, it's more like a basic timer, and not a very accurate one at that. ...