Tag Archives: C#

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 Asp.net 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

Call .NET Code Behind from jQuery

In this task we want to call a pages code behind from jQuery without the requirement of a full web services pages.  First off this will not replace the need for web services (the question came up) and this should … Continue reading

Posted in Web | Tagged ,

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 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 , , ,

Chlodny series Day 8: Display Web API GET in Grid View

For this session we are going to setup the JavaScript and HTML files to send a GET request to Web API and get a list of all the customers in the Chinook database, then we will display those in a … Continue reading

Posted in MVC, Web | Tagged , , ,

Chlodny series Day 7: Setup Client–CSS/jQuery UI Grid View

Now that our database, Entity Framework, and Web Api are all setup lets give it a gui to play with.  At a later data we will go over cross domain utilizing JSON with Passing or JSONP and Cross-Origin Resource Sharing … Continue reading

Posted in MVC, Web | Tagged , , ,