Binding precedence
ASP.NET has its own defined order in which it will bind parameters, known as its order of precedence. Using this order keeps resolution consistent and ensures that ASP.NET is resolving in a predictable way, starting with the most specific parameters to the least.
Figure 6.1 outlines the official order ASP.NET uses, which is useful to know as a developer, as it can help you anticipate any potential binding issues depending on the parameters in use.
Figure 6.1: ASP.NET order of precedence for parameter binding
Let us look at a working example of how we can create custom binding logic, giving us more control over the way binding is executed on incoming parameters.