First time here? You are looking at the most recent posts. You may also want to check out older archives or the tag cloud. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS. Thank you for visiting! (hide this)

ASP.NET MVC

ASP.NET MVC

How to get integrated debugging in Visual Studio with OwinHost in Owin-based Katana web applications

In this blog post I want to share with you an hidden feature of Visual Studio 2013 that enables an integrated debugging experience with OwinHost and other custom hosts. Options when building Owin-based apps When you build an Owin-based web application with Katana you have 3 hosting options: Use the System.Web Host, build your app as Web Application and run/debug it inside IIS Express from within Visual Studio; Build your own custom host, build your app as Console Application and run/debug it as custom console application; ...

Slides and demos for the Owin and Katana talk from NCrafts conf in Paris

Last Friday Ugo and me were in Paris for the NCrafts Conference organized by the ALT.NET France and our friend Rui Carvalho. We talked about “Owin and Katana”: at the beginning I saw many question marks on the head of people, but while going through the talk I saw those question marks becoming light bulbs, and at the end of the talk a very vibrant questions and answers session happened, something that I hoped, but frankly didn’t expect. We published the slides on Slideshare: Owin and Katana from Ugo Lattanzi and Simone Chiaretta We also put on Github...

Orchard Harvest Conference in Europe: 13-14 June in Amsterdam

In the same week of the Umbarco CodeGarden in Copenhagen, the Orchard CMS project is having its first pan-European Orchard Harvest Conference 2013. June 13 - 14th, 2013 (Thursday - Friday). The event will be held in Amsterdam, Netherlands at the wonderful Tobacco Theater. We are very excited about this event and look forward to welcoming members of the Orchard Project open source community from across Europe as well as from around the globe.   For more information about the event: Orchard Harvest - European Conference 2013 Agenda ...

How to return a CSV file with ASP.NET MVC

Continuing with my series of posts inspired by the work done on the Web.NET Conference web site, after telling you why you should not use Boolean fields when modeling your objects, today I want to share with you an ActionResult I wrote to get a CSV from a generic list of object. I needed to download the list of all attendees in csv format so that I could import them into Excel for doing various free-form analysis: I looked around the net to see if something was available but I found nothing, so I decided to write it myself...

Vote for the sessions you want to attend at the Web.NET Conference

Over the month of July, 29 speaker submitted 44 presentations' proposals. But we have only 19 slots, so even limiting to one session per speaker we will not be able to accept all the speakers that submitted a proposal. Today we are opening the voting phase: till the beginning of September you’ll be able to vote for the 5 sessions you’d like to attend to at the Web.NET Conference on the 20 October. Speakers are coming from all Europe (and beyond), like Pierre Spring from Switzerland, Niels Hartvig from Umbraco, Jakob Mattsson from Sweden, Maarten Balliauw, Kris van...

Experimenting with DevExpress DXv2 v2012 MVC Extensions and my first impressions

A few months ago I wrote a post on a component library built entirely in jQuery, but if you don’t like to write lots of javascript and prefer to write as much as possible in server-side code, today I’m writing about something I’ve been looking at lately: the new DevExpress DXv2 v2012 library, specifically the MVC extensions. Just small note before going on, I want to point out that that library contains also controls from WPF, classic ASP.NET WebForms and Silverlight. Installing and the first impressions Let’s start from the installation: it was pretty easy and...

The “modern” ASP.NET web stack is fully opensource: ASP.NET MVC, Web API, ASP.NET WebPage and Razor

Still getting my head around this early morning (in Europe timezone) announcement on ScottGu’s blog: ASP.NET MVC, Web API, Razor and Open Source. Some of you might remember that almost 3 years ago the announced that ASP.NET MVC v1 was being released under the MS-PL license, thus making it opensource. That turned out to be just a source snapshot of each public release, and were not accepting contributions, so, a “partial” commitment to open source. This time is different: the source code is available from the “live” repository the ASP.NET team is working on, and they are going...

What’s new in ASP.NET MVC 4: slides and demo are now online

Today I had my first live webcast for Microsoft Belgium, about the new features released with ASP.NET MVC 4 at Build in September. There were around 80+ people registered and around 50 people attending, and almost nobody left before the end of the webcast, so I guess it pretty well. We also are aware there were some glitches in the audio during the async part of the webcast: the audio was also recorded directly from the mic, so the video that will be published in the next week on Channel9 will have good audio. Or just register for...

The evolution of asynchronous controllers in ASP.NET MVC

Asynchronous operations in ASP.NET MVC have always been left a bit behind. They appeared in ASP.NET MVC 2, remained untouched in v3, but now in MVC 4 (especially  in combination with C# 5 and async/await) they reached the same easiness of use of the standard synchronous controller. Now (or better, in a few months with the release of ASP.NET MVC 4, .NET 4.5 and C# 5) you can write public async Task<ViewResult> Stuff() { return View(await DoStuff("Some stuff")); } In this post I’m going to show how the code...

Best of 2011: top 5 posts of the year

This is the time of year when people look back at the year just passed, review and looks out for the year to come. My retrospection post will come in the new year, but for the moment I want to review my top posts of 2011. The most popular post of 2011 1. The history of ASP.NET MVC, so far – This blog post contains the list of all the version of ASP.NET MVC, and the features that were brought into each version. It was featured in the home page of the asp.net portal...

What's new in ASP.NET MVC 4 webcast: 17 January

ASP.NET MVC 4 is the new version of ASP.NET MVC that came out during Build in September: it included a few pretty interesting features like a newly revamped project template, a better asynchronous controller and, the main feature, native support for mobile version of the site, with device detection and mobile only views. Also some productivity enhancement were introduced, like recipes to automate repetitive coding tasks. And finally, if you run ASP.NET MVC 4 on top of ASP.NET 4.5, you also get its new features, like script&styles minification and bundling. I’ll talk about all that and, hopefully something...

Set the AsyncTimeout attribute for your async controllers

Today I decided to convert an action that was making various long calls to external webservices to be asynchronous. With the synchronous version it was long but still under the default script timeout of ASP.NET, so I was very surprised when the async version was returning a System.TimeoutException, even if it was still taking the same amount of time. I tried increasing the ScriptTimeout, but still no luck: the page was timing out. After a bit of searching online I found out that for some strange reason, async controllers have a different timeout, specified by the Timeout property of...

Series of webcasts about ASP.NET MVC 3 (in Italian)

After a long gestation period, today it was published on Channel9 a series of webcasts about ASP.NET MVC 3. This webcasts Ugo Lattanzi, a fellow ASP.NET Italian MVP, and I recorded (in Italian) covers the following topics: Introduction to the new features of ASP.NET MVC 3 Razor, the new view engine of ASP.NET MVC 3 How ASP.NET MVC 3, SQL CE 4 and EF CodeFirst work together Introduction to IoC/DI and how to use Ninject inside ASP.NET MVC 3 ...

10 articles on ASP.NET MVC Extensibility to land on Simple-Talk in the next months

If you are following my blog since at least a few years you know that one of my main interest is the possibility to extend ASP.NET MVC and fine tune it to fit your (and your team’s) needs. One of my most popular posts is 13 ASP.NET MVC extensibility points you have to know, which I published almost 2 years and half ago (and was based on ASP.NET MVC v1). Still on the same subject I gave a two hours long presentation at Umbraco CodeGarden ‘10 Mvc Pre-Conf: ASP.NET MVC Extensibility. To try and push the concept that...

Microsoft dev stack vNext from Build

Unless you are living under a rock, you have probably heard that two days ago, at Build, Microsoft unveiled the new version of Windows, named Windows 8. Windows 8 This is revolutionary both from the consumers’ and developers’ perspectives. The UI is deeply based on the concept of the tiles of Windows Phone 7.5 “mango” and the Metro design language, and the API are now allowing applications to be written either in C#/C++ and the usual .NET/Win32, or using WinRT, basically an Object Oriented version of Win32 or, as someone says, COM done right, and C#+XAML or JavaScript+HTML/CSS....

7 books for a .NET Summer reading list (2011 version)

In the previous years “n books for a .NET Summer reading list” used to be the title of the book list post. Now, in the last of my 4 posts with books suggestions I am back to the original title. In my introductory post I said I would have listed only a few web development on .NET books. In fact there are only 2. Web Development on .NET Professional ASP.NET MVC 3 While Professional ASP.NET MVC v2 was mainly an update of the original professional MVC1 book, the third remake, due to the nature of the new...

The history of ASP.NET MVC, so far

This post is a mile high overview of the history of ASP.NET MVC, the features it brought with the various versions and the extensibility points introduced. I am starting to work on both a series of webcasts and articles and I was doing some preparatory work, collecting information on the various features and extensibility points that got into the various (official) releases of ASP.NET MVC, so I thought it could have been useful to share my little summary. There have been 3 major official releases, and 1 small tool update. ASP.NET MVC 1.0 The first official...

TechDays Belgium: videos are online

At the end of April, Microsoft Belgium organized the TechDays Belgium, the annual developer and IT conference in Belgium, to which I had the pleasure to attend. I also manned the Ask The Expert booth and helped attendees with their questions about ASP.NET MVC, Orchard and web development. It was 3 days of very interesting sessions, ranging from the keynote/standup comedy show by Scott Hanselman to the ASP.NET MVC Deep Dive sessions by Hadi Hariri and to the Girls-Power WP7 development session by Katrien DeGraeve and Isabel Gomez Miragaya. And the last day was a deep-dive on everything ALM: a bit of...

Ruby on Rails vs ASP.NET MVC slides, demos and video are online

During last Saturday’s UGIALT.Net Conference in Milano I shared a talk together with Italian RoR expert Sandro Paganotti: “RoR vs ASP.NET MVC”. We had 20 minutes each to build a super easy conference registration page and also explaining to the audience what we were doing. The goal of the talk was not to choose the best platform or the most productive one, but to show the steps needed to setup and create a simple but fully functional web application. It was a very nice experience and I think it showed how similar the the web frameworks are. To...

My resolutions for 2011: do not over-commit

One of the reasons for the failures of 2010 is over-commitment. Number one priority for 2011, will be: do not over-commit. Starting from my resolutions, so just 3 per 3 categories. Personal life XC-Skiing: at last for this winter, train, practice and try to take part in the Engadin Ski Marathon with Daniela and Davide Vosti. Climbing: go back climbing. Period. Be more constant with training...

How to move you posts from Subtext to WordPress

A few weeks ago, I finally finished the migration of Daniela’s old blog to a new domain and a new blogging platform: we moved from Subtext to WordPress. The reasons of the move There are two reason behind that move: the big ecosystem around WordPress, and the lack of a real desktop blogging tool on the Mac (combined to the outdated FCKeditor 2 that is used by Subtext). During the migration Daniela thought about a different Information Architecture of her content spread around in the web, designed and implemented a HTML5 template and later we made it...

ASP.NET MVC 3 Preview 1 is out

Still not officially announced by anybody inside Microsoft, but quietly this morning the first preview of ASP.NET MVC 3 appeared on Microsoft Download. And it’s exactly what everyone was expecting after last month’s announcement of Scott Guthrie of Razor, the new view engine for ASP.NET MVC. What else does this new version bring to the table? First of all it takes a dependency on .NET4. It means that you cannot be able to use it unless you migrate you applications to the latest version of the .NET framework (and if the story repeats itself, with the RTM...

7 hand-picked posts from CodeClimber (aka the 7 Link Challenge)

A few days ago, Darren Rowse from ProBlogger stated a blogging challenge: The 7 Link Challenge. Basically it’s about picking 7 posts that fit into 7 different “themes”. Without further ado, here they are. Sometimes I’ll break the rule and will link to 2 posts per category, but, after all, rules are made to be broken, aren’t they? My first Post – I wrote my first post in October 2006. It was titled Subtext Halloween. Actually this is a post I previously posted in my Italian blog, together a few others before launching the “new” blog...

Welcome to the WebMatrix, and my thoughts about it

When I saw the Gu writing 3 posts in a row about new technologies/products (IIS 7.5 Express, SQL Server CE 4 and Razor view engine) I knew something big was about to come. And in fact yesterday he announced the WebMatrix, a new web development stack that combines the 3 products above plus a new super-easy to use web development IDE and a new syntax for developing quick websites, called ASP.NET Web Pages. The WebMatrix First let’s share the official announcement: WebMatrix includes a complete Web development stack that integrates a Web server (IIS...