What keyword is used in the route template to define a variable segment?
- {var}
- [var]
- $var$
- :var
In a route template in ASP.NET Core, you use curly braces {} to define a variable segment. This allows you to capture dynamic parts of a URL, such as IDs or names, and pass them as parameters to the corresponding action method.
Loading...
Related Quiz
- With ASP.NET Core, you can deploy your applications in a _________, making them platform-independent.
- In the context of ASP.NET Core, what does the CLI tool allow developers to do?
- Which ASP.NET Core middleware is responsible for enabling session state in the application?
- In what scenario might you use the _ViewImports.cshtml file in conjunction with Razor Layout Views?
- When configuring EF Core with ASP.NET Core, which class is typically used to represent the database's context?