Monday, December 3, 2012

Why All The Lambdas in ASP.NET MVC?

http://odetocode.com/blogs/scott/archive/2012/11/26/why-all-the-lambdas.aspx


- If Model is null, the code will fail with an exception.
- We aren't providing any client side validation support.
- We have no ability to display an alternate value (like an erroneous value a user entered on a previous form submission – we want to redisplay the value, show an error message, and allow the user to fix simple typographical errors).


What is .d in Json result?


it protects from a tricky JSON hijacking scenario that exists when the outer JSON entity is an array.
http://stackoverflow.com/questions/2811525/removing-the-d-object-from-asp-net-web-service-json-output

http://encosia.com/never-worry-about-asp-net-ajaxs-d-again/

3.5 JSON Response in Firebug