SelectList is not selecting my “selectedValue”

I learn something every day whether I like it or not. Today’s lesson: SelectList thinks she’s smarter than you. Observations I was working in an MVC4 app, making some forms light up with some custom HtmlHelpers. Everything is dandy until a drop-down doesn’t re-populate with the previously selected value after …

SelectList is not selecting my “selectedValue”

I learn something every day whether I like it or not. Today’s lesson: SelectList thinks she’s smarter than you. Observations I was working in an MVC4 app, making some forms light up with some custom HtmlHelpers. Everything is dandy until a drop-down doesn’t re-populate with the previously selected value after …

Unit Testing ASP.NET MVC HTML Helpers with Simple Fakes

You will find countless blog posts, forum posts, and Stack Overflow questions concerning the topic of unit testing a ASP.NET MVC HTML Helpers. Unit testing is an art, and I am still a novice. I played around with NUnit between 2004 and 2006. I really enjoyed practicing TDD but couldn’t …

Auto-populating ASP.NET MVC “controls” after a post

I’m not sure if what I’m doing is actually the right way to create a “user control” in ASP.NET MVC, but it’s worth sharing this tidbit either way. Instead of using a MVC View User Control to create a hidden field, a text box, two anchors, and three JavaScript functions, …

Getting your ASP.NET Futures DLLs out of the GAC

In a previous post about the AJAX Extensions, I detailed the copy commands to retrieve the DLLs from the GAC. Same thing, this time for the ASP.NET 3.5 Extensions. If you are demoing CTP material in a hosted environment, you will likely need these in your app’s bin to avoid …