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...
MIX11 Second Day Sessions Summary Here is a summary of the sessions I attended in the second day of MIX11: An Overview of the MS Web Stack of Love In the session Scott Hanselman showed a lot of demos in the Microsoft web platform. The things that Scott showed: ASP.NET MVC 3 + new tools Scaffolding IIS Express NuGet EF4.1 Glimpse – a new open source package which is FireBug like tool for MVC framework. Get the insight of the flow of your MVC application. Knockout.js: Helping you build dynamic JavaScript...