In one of the tutorials, the controller sends back data in a format that JavaScript can easily parse. What type of action result does this refer to?
- ViewResult
- JsonResult
- RedirectToActionResult
- ContentResult
When a controller sends data that JavaScript can easily parse, it usually returns a JsonResult. This action result serializes data into JSON format, making it suitable for consumption by JavaScript code.
Loading...
Related Quiz
- What is the primary purpose of Entity Framework Core in ASP.NET Core applications?
- Which method of the UserManager class in ASP.NET Core is primarily used to create a new user?
- For reusability, developers can create Razor ________, which are similar to partial views but with more logic encapsulation.
- The ASP.NET Core "Web Application" template is best suited for creating ________-based applications.
- Which design principle suggests that each component of MVC (Model, View, Controller) should have a distinct and separate responsibility?