If working on Asp.Net MVC, you will know the anti-forgery token that helps to protect our website against cross-site request forgery. To use this feature, call the AntiForgeryToken method from a form and add the ValidateAntiForgeryToken attribute to the action method that you want to protect. Call AntiForgeryToken from a form

Add ValidateAntiForgeryToken attribute to… Read More

The Issue As many companies had applied a global policy to enable the compatible view in IE for all intranet sites on all PCs. So that the old web application can be display properly. However the new web application, especially using Asp.Net MVC and Bootstrap is not working fine with compatible view mode and definitely, we can’t ask our infrastructure… Read More

In this post, I would like to share with you How to develop a native cross platform mobile application that interacts with Azure Web service. I. Requirement. As an account manager, I would like to request a mobile application that allows connecting to Azure web service to add, update, delete and view user accounts remotely.… Read More

This topic is discussed the class designation for unit testable. If you were started to write the unit test for your classes recently, definitely you may face the problem that some classes can’t be writing the unit test or alot of time has been spen for the single unit test. Why your class is not testable… Read More

As you know, the new interfaces  IReadOnlyCollection<T>, IReadOnlyDictionary<T>  and IReadOnlyList<T>  had been added to DotNet4.5. The purpose of these interfaces is providing the generic read-only collection. For that purpose, the DotNet framework also provided the implementation of these interfaces: the  ReadOnlyCollection<T> was inherited IReadOnlyList<T> , and ReadOnlyDictionary<T>  was inherited IReadOnlyDictionary<T>. The IReadOnlyList<T>  is just an additional that inherited from IReadOnlyCollection<T>  with… Read More