@manhnguyenv

Welcome to my blog!

Một số kinh nghiệm phát triển một Web App sử dụng ASP.NET MVC

May 31, 2019 09:26

Một số kinh nghiệm phát triển một Web App sử dụng ASP.NET MVC (edit)

+ Check null trước khi sử dụng .Name, .Age

+ Check null trước khi sử dụng .ToString(), .Parse()...

+ Khở tạo list rỗng trong constructor để tránh trường hợp sử dụng list đó khi mà list null

+ Không sử dụng return default value khi xảy ra Exception

+ Không sử dụng Cache cho những dữ liệu người dùng (private info, User Settings, ...)

+ Chú ý khi trả về từ lệnh return Json(..., );

Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property

https://blogs.msdn.microsoft.com/mayurpatankar/2018/04/05/error-during-serialization-or-deserialization-using-the-json-javascriptserializer-the-length-of-the-string-exceeds-the-value-set-on-the-maxjsonlength-property/

Solution

https://stackoverflow.com/questions/47257227/the-length-of-the-string-exceeds-the-value-set-on-the-maxjsonlength-property-c

https://stackoverflow.com/questions/16848289/error-the-length-of-the-string-exceeds-the-value-set-on-the-maxjsonlength-proper

ASP.NET MVC Architecture

https://www.tutorialsteacher.com/mvc/mvc-architecture

https://www.c-sharpcorner.com/article/standard-application-architecture-in-mvc/

https://www.danylkoweb.com/Blog/top-10-books-every-net-developer-should-own-QG?quora

https://www.c-sharpcorner.com/article/mvc-5-demo-project-with-entity-framework-db-first/

https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/database-first-development/setting-up-database

https://blog.trigent.com/caching-in-asp-net

https://www.codeproject.com/Articles/70061/Architecture-Guide-ASP-NET-MVC-Framework-N-tier-En

https://stackoverflow.com/questions/10515623/architectural-decisions-asp-net-mvc-entity-framework

https://stackoverflow.com/questions/15856660/architecture-for-aspnet-mvc-web-application

Categories

Recent posts