Using HTML5 Server-Sent Events with JSON and ASP.NET MVC I’m getting ready for a session that I’m delivering at the end of this month. I wanted to create a sample for using HTML5 Server-Sent Events and decided to share that sample with my Blog’s readers. But before I write about the sample, lets get to know the Server-Sent Events HTML5 API. Server-Sent Events Server-Sent Events is an acronym to the HTML5 EventSource JavaScript API . The Server-Sent Events enable servers to push data over HTTP using...
Avoiding Circular Reference for Entity in JSON Serialization One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem. The JSON Serialization Error Returning the output of the JSON method in an...