While exploring an ASP.NET Core application, you notice a URL pattern like /Books/Details/3. What does the 3 represent in terms of routing?

  • Route parameter
  • Query string parameter
  • Controller name
  • Action name
In the URL /Books/Details/3, the "3" is a route parameter. Route parameters allow you to pass data from the URL to your controller actions, making it dynamic and allowing you to retrieve information specific to the value "3."
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *