Contents tagged with ASP.NET

  • Combining ASP.NET MVC and ASP.NET Charting Controls

    As ScottGu recently posted on his blog, Microsoft have recently released a set of charting components. Several people followed up with comments on his post asking whether it was possible to use them with ASP.NET MVC. The good news is that it certainly is, if you are using ASP.NET as the View engine (the default). And there's actually relatively little that you have to do. This post outlines the steps you'll need to take to get it up and running.

  • MVC ModelBinder and Localization

    One of the great things about the way in which the Microsoft ASP.NET MVC Framework is being developed is the fact that the team are publishing the source code as they go along. This makes it very simple to dig into the framework when something slightly surprising is happening and figure out exactly how it is supposed to work. A good example of this cropped up for us yesterday when looking at a form posting scenario using DateTimes. We were dealing with an Action Method that looked something like this:

  • How to use the ASP.NET MVC ModelBinder

    One of the new features in the latest build of ASP.NET MVC is the ModelBinder, which is provided to allow Action methods to take complex types as their parameters. Previously, action methods were only able to take simple types such as strings and integers as their parameters. The new ModelBinder provides the facility to build complex types from component parts that (for example) may be part the result of submitting a form with several fields. To see an example of this in action, we will first need a fairly simple class to work with. The following class definition will typically be placed in the Models directory. I have left the using statements at the start of the file as an 'exercise for the reader'!

  • ASP.NET MVC Codeplex Preview 5

    ASP.NET MVC Codeplex preview 5 went live last night. Available here. I haven't had a dig into it yet to have (just downloading now), but according to the release notes, some of the highlights include:

  • Clean Separation of Concerns in MVC

    One of the main areas that is cited as a benefit of using the new ASP.NET MVC Framework is that you can obtain a 'clean separation of concerns'. But the question is, what does this really mean, how achievable is it in reality, and should we really be interested in doing it?

  • MVC AJAX Support

    In the latest preview of the Microsoft ASP.NET MVC Framework, one of the newly included features is AJAX helper methods. It's going to be interesting to see where they go with these. At the moment, they've added just a couple of tasters. This blog post discusses how to set them up and make use of them if you want to try them out. Currently, there are two helper methods that have been created, Ajax.ActionLink and Ajax.Form. I will discuss both below. They both generate HTML, much in the manner of pre-existing helpers such as Html.Form.

  • MVC Preview 4

    It's been announced on ScottGu's blog that MVC Preview 4 is due out later this week. Obviously we'll need to wait and see what it feels like when we get to have a play for real with it, but first impressions from reading down the article is that they seem to have nearly nailed down the core API to create a version that's close to what will go live, and are now busy working on all the bits and pieces that will be necessary for actually using it in a commercial sense. So we're now getting good authorisation, error handling and the like. I'll be getting it as soon as it's released and giving it a good going over to see how the new features play.

  • MVC training day 2

    Back for more! We started the day with a quick look at Dynamic Data (no more than an overview for those that hadn't seen it before), then moved on to look at unit testing the MVC framework, before finishing off with a look at jQuery and how it works with MVC.

  • MVC training day 1

    We've had the first of our two half days with Steven Sanderson this morning. It was split in half, with the first half covering the new C# 3.0 language features and the second tackling MVC.

  • MVC Training

    Starting tomorrow we've got a couple of training sessions on the new ASP.NET MVC framework lined up here at Red Gate with Steven Sanderson. Steven used to work here, but is currently busy writing one of the books that's going to be an authority on the subject. Check it out here!