July, 2010

ASP.NET MVC 3: Using multiple view engines in same project

One of nice features of ASP.NET MVC 3 is support for multiple view engines. There will be two out-of-box view engines: one for classic ASPX-based views and one for Razor-based views. In this posting I will show you this new feature and demonstrate how to use different view engine in same project.

ASP.NET MVC 3: Creating HttpStatusCodeResult with view based body

My last posts described new action results in ASP.NET MVC 3 – HttpNotFoundResult and HttpStatusCodeResult. Unfortunately these result have no body to send to client but there are times we need it to inform our visitor about problems the way that we don’t go out of information context where visitor is. In this example I will show you how to write your own HttpStatusCodeResult that has also body.

ASP.NET MVC 3: Using HttpStatusCodeResult

ASP.NET MVC 3 also introduces new action result HttpStatusCodeResult. This action result provides you way how to specify HTTP status code and status description in your controllers. In this posting I will show you how to use HttpStatusCodeResult in your real-world applications providing meaningful status code for products that were online once but are now gone and we don’t expect them to be back in future.

Overview of my MVP year

Another MVP year is over. Today I sent my activity report to my MVP lead and in October it should be clear if my MVP will be continued or not. I hope it will continued, of course. Now it is time to make one little overview about my MVP year that just ended in terms of public activities. It was year full of action and interesting people – something that is hard to forget. You should be proud too – without you there is no MVP program, this blog and many other things. So, feel yourselves as part of action!

ASP.NET MVC 3: New ViewModel is dynamic ViewData

ASP.NET MVC 3 introduces new ViewModel property of Controller that you can use to assign different properties to the model of your view. ViewModel is dynamic by type. In this posting I will show you how to use ViewModel property in your ASP.NET MVC applications.

ASP.NET MVC 3: Using HttpNotFoundResult action result

ASP.NET MVC 3 introduces some new action results like HttpNotFoundResult that you can use to let browser know that resource was not found. In this posting I will show you how to use HttpNotFoundResult in real-world applications.

ASP.NET MVC 3 Preview 1 is released!

ASP.NET MVC 3 Preview 1 is launced and available for download. There are many cool features and I strongly suggest you to try the new version out. In this posting I will give you quick overview about what’s new in ASP.NET MVC 3.

How to make AJAX-requests to ASP.NET MVC application using jQuery

I decided to write over long time one posting that is directed to beginners who start with jQuery and AJAX. One of the first things to study is how to make requests to server and how to retrieve objects. In this posting I will show you how to use jQuery to retrieve JSON data from ASP.NET MVC application and how to debug it.

Solution Navigator: Killer replacement for Solution Explorer

Visual Studio 2010 Productivity Power Tools contains now Solution Navigator that merges many good features of Visual Studio 2010, Solution Explorer and some Power Tools features to single view. After playing shortly with Solution Navigator I found it to be very good replacement for Solution Explorer. In this posting I will show you some very cool features of Solution Navigator.

WebMatrix Beta in pictures

Long time ago there was simple ASP.NET editor called Web Matrix that was replaced by Visual Web Developer Express when Express versions came for Visual Studio. Now is time again for some small and easy tool and here it is – Microsoft WebMatrix Beta. In this posting I will introduce you Microsoft WebMatrix and show how it works.