Monthly archives: June, 2014

Setting up SSL for Azure Website using GoDaddy

Since a while back it’s now possible to add SSL certificates to your own domains on Azure. However, it’s not like a walk in the park to make it work. It all depends on what SSL provider you’re using. I was using GoDaddy and these are the steps I took to configure it all. Before

Extend MVC controller to support Toastr messages

In an earlier post I showed how to create an MVC wrapper for Toastr, a JavaScript library used for displaying user messages in the web browser. In the post I mentioned that there are two ways to make it possible to call an AddToastMessage function directly from the action methods in the controller: Implement an

Create an MVC wrapper for Toastr

Toastr is a great little library for creating user messages on your website. It’s written in JavaScript and is as such platform independent. But if you’re like me (mainly working in ASP.NET MVC) then creating a server side extension to get messaging support directly in your controllers, could be something to consider. The code shown

Using Json.NET as default JSON serializer in MVC

Returning JSON from an MVC action method is very easy. Just look at this simple example: public JsonResult GetItemData(int itemId) { // …things to do… var response = new { result = “ok” }; return Json(response); } Serialization of the object into JSON is taken care of by ASP.NET in the background and you can

%d bloggers like this: