Tip: EF CodeFirst - Deleting child records

Error Message The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set to a null value. If…

MvcMailer

Problem A lot of people recommended that MvcMailer is a great package for those who want to send email from ASP.NET MVC app but seems like the author of that package really didn’t get time to update the dependencies of…

Anthem.NET and .NET 4.0

Solution for making Anthem.NET works in .NET 4.0 project. Problem Anthem.NET Ajax library written by Jason Diamonds supports only ASP.NET 1.1 and ASP.NET 2.0. This library is totally depending on the classic client id generation. When we upgraded our project to…

Tips! ASP.NET MVC - JavaScriptSerializer - 3 Questions and 3 Answers

Thanks to Darin Dimitrov (MVP)  for answering questions in very details! Test Project Download ~ git clone: git@github.com:michaelsync/Michael-Sync-s-blog-sample.git AjaxJsonTest Scenario I have the following model, view and controller. Model View Controller Questions 1) Why can’t we use the public field instead…

Building ASP.NET MVC, Web API, and Web Pages source code

Update #1: Brad Wilson replied me as below ~ Paul Betts has diagnosed this as having some auto-generated files which are currently UTF16, which Git does not support. I’m working to figure out exactly how widespread the problem is. Seems like…

Windows Phone 7/7.5 + Phonegap = ????

When I saw Microsoft’s cool HTML 5 demo, I was pretty excited because it has all effects/animation that we need for Windows Phone. Pivot control and live title are already parts of that demo. (Of course, it’s not a re-usable…