Archive for the ‘Development/Programming’ Category

Routing testing in ASP.NET MVC 2.0, a quick workaround (2009-11-3)

Areas in ASP.NET MVC is a long awaited feature (although there were some workarounds available for version 1.0). If you want to read a quick walkthrough in dividing your ASP.NET MVC project into areas, here is one from msdn.
But, after divided a project into areas, my route unit tests was failing with “System.Web.HttpException: The type [...]

MVVM Login demo application update, added Silverlight project (2009-10-18)

This is the same MVVM login demo application, initially made for WPF and we want to add a Silverlight version, but reusing the business logic that we already have. Currently, I’m using Silverlight 2.

When you start working with Silverlight, you’ll miss a lot of WPF “goodies”. Understandable, since Silverlight is targeting the rich user experience [...]

Real use of Microsoft Oslo? (2009-10-5)

How would you use Oslo in the real world? Well, this weekend I got a little Oslo “infection”. For the moment, only with Intellipad tool.
Working with MSpec and with BDD style tests, I always thought that a really good thing would be to generate test’s code or to run somehow tests specified in plain English, [...]

WPF Login Demo with MVVM pattern – update (2009-9-30)

After the first example posted, here are some improvements:
1. Moved business layer into separate project for testing
2. Added a quick test project (with some BDD flavors)
3. Tests are targeting only the ViewModel.
4. Refactored the intentional first naive ICommand implementations (towards Prism via DelegateCommand, although RelayCommand or SimpleCommand can be used also).
5. Still DIDN’T added yet [...]

Database Projects error: “An error occurred trying to load the project properties window. Close the window and try again.” (2009-9-25)

 
I’m using Visual Studio 2008 SP1, Team Foundation Server 2008 and Database Edition GDR.
Suddenly, my desktop builds doesn’t work anymore. The issue was related to my database project (an Sql Server 2008 Database project). Trying to get database project properties window leads to that error:
An error occurred trying to load the project properties window.  Close [...]

Simple WPF Login demo, with MVVM pattern (2009-9-23)

There is a newer version here.
I was offering myself to prepare a quick WPF Login demo (having a minimum set of best practices) for a colegue, so here it is. (I’ll update it with more details and, perhaps, new versions):
It uses the MVVM pattern, no code behind (except the lines in which the DataContext is set), [...]

Highlight selected row in ASP.NET MVC: it’s about requirements (2009-9-21)

This is more a view from a different angle than a technically post: suppose you have an ASP.NET MVC application with a simple table with products (let’s name the view Products). Clicking on any product “Details” link, you should see the same table but with the product clicked previously highlighted and the product details.
How would [...]

“Object expected” jquery error: last place to look (or why you should look carefully at the META tags) (2009-9-17)

That’s will help others for sure: ever happen to work on localhost on a legacy application (no matter if on Apache or IIS) and to have some missing images, css files or js files? Even if you are sure that there are in right place, accessible by the web server?
Here is my Error Console from [...]

ASP.NET MVC routing for IIS 6, why ending extension is bad? (2009-9-15)

Deploying an ASP.NET MVC application to production (on IIS 6) makes the nice looking URL to not work as expected.
Without going into too much details, the issue is ASP.NET needs the .aspx to be present into the URL, in order to be triggered.
So, an URL like
http://www.mycompany.com/Romania/English/Services will lead to a 404 error. Recommended solutions are [...]