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...
My Sela Dev-Days Experience Today I finished my Sela Dev. Days experience. Sela Dev. Days is a conference which include 5 days, 15 top experts, 25 session, and a whole lot of attendees (around 600 people registered for this week). If you are not familiar with Sela Dev. Days you can go to the conference’s site . In the conference I had three tutorial days in three different subjects: ASP.NET MVC 3, EF Code First integration, and Razor: Oh My! In this one day tutorial I co-operated with Sebastian Pederiva...
MIX11 Keynote Session Summary I’m currently attending the MIX11 Keynote session. Here are some of the things that you might consider to checkout in the following weeks: IE10 Preview was released and can be download from here . A new tools update for ASP.NET MVC3 was released and includes: EF4.1 support jQuery 1.5 and Modernizr support Scaffolding support New Controller templates More WebMatrix update Orchard CMS new release Windows Azure new upgrades Access Control Service V2 Caching CDN support...
How to Enable Client Side Validation in ASP.NET MVC 2 Last night I was teaching MVC framework as part of an ASP.NET course. One of the things that I showed the students was how to use data annotations for server side validation. I got a question about how to enable client side validation in MVC 2 and decided to write about it in a post. So here it goes… MVC Server Side Validation In MVC 1 we didn’t have client side validation out of the box. In order to achieve validation we needed to use one of...