103 articles ASP.NET MVC Page 11 / 11

ASP.NET MVC 4 Custom Action Filters #1

Exercise 1: Logging Actions In this exercise, you will learn how to create a custom action log filter by using ASP.NET MVC 4 Filter Providers. For that purpose you will apply a logging filter to the MusicStore site that will record all the activities in the selected controllers. The filter will extend ActionFilterAttributeClass and override OnActionExecuting method to catch each request…

ASP.NET MVC: JSON string too long

If you get the InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. when trying to serialize data to JSON representation, then most likely you are doing something wrong. AJAX is not meant to move large amounts of data – rethink…