I have been using the Microsoft Web Platform Installer or PI for a while now. It’s a great handy tool for ensuring that I have all the latest bits of Web platform tools like MVC, Web Matrix are installed. One of the other thing I like about Web Platform Installer is that the tool can self update itself. When a new version of the tool is released, it shows a dialog box to the user to install the latest version of the tool.
Recently I installed the PI version 3.0
Apart from the Spotlight tab showing the recent released, as usual the Products tab shows all the products. It can also the filtered into different category of downloads like Server, Framework, Tools etc.
I hope some day Microsoft would release a same type of tool for Windows developers also!
One of the best new feature of ASP.NET 4.0 Web Form (yes it’s still alive) is the new Chart control. There have been a need for a Chart control for a long time – from version 1.0. Folks have used custom controls from various sources or written their own one. Now in ASP.NET 4.0 Microsoft have introduced a Chart control ultimately. This could be used in ASP.NET MVC also apart from Web Forms.
The Chart control provides all different type of charts like Column, Bar, Line, Area, Pie, Doughnut (to name a few). Following is an example of Chart with chart type Column.
To set up a basic chart control you have to set a few properties like XValueMember and YValueMembers. In the example I have displayed the Total Sales figure for few cities. Following is the page markup –
As you can see I’ve set XValueMemeber to City and YValueMembers to TotalSales – both of them are properties in my DTO –
The chart type could be set in markup or through code for the series –
chtSalesData.Series[“Series1”].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Bar;