You're learning about ASP.NET Core MVC and come across an example where the controller returns a webpage. Which action result is this likely using?
- ViewResult
- JsonResult
- RedirectToActionResult
- ContentResult
When a controller returns a webpage in ASP.NET Core MVC, it typically uses a ViewResult. A ViewResult represents an HTML page that is rendered to the client. It's commonly used to generate HTML views for web applications.
Loading...
Related Quiz
- How can you restrict an action method to respond only to HTTP POST requests in ASP.NET Core MVC?
- You're tasked with displaying a list of products on a webpage using ASP.NET Core. Which type of Razor view would be most appropriate for this task?
- Imagine you're developing an ASP.NET Core application on a machine without any internet access. Which tool, among the following, allows you to install NuGet packages from a local feed or folder?
- For highly secure data transmission in Web APIs, which method is recommended for data transfer?
- In an ASP.NET Core MVC application for a library, where would the information about available books and their details be stored?