I think that ASP.NET MVC is a huge step forward from ASP.NET Web Forms. Still, there are some parts of it that are disappointing. One is the SelectList constructor, that doesn’t use generics and has string parameters for field selection. To create a SelectList from an IEnumerable<> we would do something like this. IEnumerable<Person> people… Continue reading Type Safe SelectList Factory
Tag: Web
jQuery UI Replacement for alert()
The Javascript alert(message) is a simple one-liner to show a message on a web page. It uses a standard system dialog box to display the message. On a site where most other UI elements are built using jQuery UI it is more natural to display the alerts in the same style. Unfortunately there is no… Continue reading jQuery UI Replacement for alert()
Catch Errors in ASP.NET MVC Views
The compiler is my friend. It helps me check for simple spelling mistakes and alerts me when a change in one part of the code base breaks a reference somewhere else. When developing in ASP.NET Web Forms I have had a hard time with the lack of compilation of aspx pages. As long as the… Continue reading Catch Errors in ASP.NET MVC Views
Trying jQuery UI
The best way to learn a new technology is to try it out in a small sample project. With web development being my weak spot I decided to give jQuery UI a try. The only thing missing was the objectives of the sample project. I decided to try to make a small game for my… Continue reading Trying jQuery UI