Category Archives: MVC

Health Monitoring with ASP.NET MVC

ASP.NET Health Monitoring has been around for a very long time (.net 2.0).  I personally think it is a feature that has been put on the back burner and forgotten about by most.  Health Monitoring was created to help evaluate … Continue reading

Posted in Development, MVC, Web | Tagged , , | 2 Comments

CS0012: The type ‘System.Data.Spatial.DbGeography’ in Entity Framework and MVC

Last night I was working on a MVC4 project.  Utilizing Entity Framework 5’s new DBGeography when adding the field to the MVC view I received the following error:

Posted in Entity Framework, MVC | Tagged , | 1 Comment

MVC display an image that is stored as a byte array

  So the scenario is; how do we retrieve images that are stored in a database as a byte array and display them on a page utilizing MVC.  The major hurtle that needs to be overcome is that a … Continue reading

Posted in Entity Framework, MVC | Tagged , , | 5 Comments

.Net 4.5/MVC/WebAPI RC and the missing JsonArray

  Before the RC release of MVC4/WebAPI JsonArray and JsonObject lived in System.Runtime.Serialization.  Once you upgrade your project these options disappear. The fix is pretty simple.  In the latest RC release of MVC4/WebApi Microsoft switched the JSON handler to JSON.NET

Posted in MVC, Web | Tagged , , | 1 Comment

Chlodny series Day 14: Web Api Upgrade from beta to RC

Over the weekend I finished upgrading the initial parts of the Chlodny Web Api project along with the past blog post of this series.  This post will go over the process I needed to do in order to upgrade from … Continue reading

Posted in MVC, Web | Tagged , , , , | 4 Comments

Chlodny series Day 13: Web Api Update

[Updated Web Api RC] The last part of the local CRUD application is update.  We will be following a similar pattern that was conducted in Day 12. Open CustomerController.cs and create a new method named PutCustomer that returns a HttpResponseMessage.    … Continue reading

Posted in MVC, Web | Tagged , , , ,

Chlodny series Day 12: Web Api Create

[Updated to Web Api RC] In our quest to create a CRUD application we have completed the read and the delete portion.  In this article we will generate the create functionality.  For now I am using the jQuery Templates in … Continue reading

Posted in MVC, Web | Tagged , , , ,

Chlodny series Day 11: Web Api Delete

[Updated for Web Api RC] In sessions 8-10 we added some get functionality along with paging and selection support to our grid.  Now what if we want to prune out customer database and remove one of those customers.

Posted in MVC, Web | Tagged , , , ,

Chlodny series Day 10: Clear selection

In session 9 we added paging and the selection events.  If you selected one or more rows from the top grid it would populate the bottom grid.  What if you want to remove everything from the selection grid

Posted in MVC, Web | Tagged , , ,

Chlodny series Day 9: Grid View enhance paging and selecting

In the last session we utilized AJAX and called into our Web API to get a list of all the customers in the Chinook database.  We then took those results and bound them to a data grid so that an … Continue reading

Posted in MVC, Web | Tagged , , ,